If you have a multi-dimensional array then why don't you just loop through that?