I'm having trouble manipulating and array to filter some data. Here's an example of the array:
Array
(
[0] => Array
(
[0] => Array
(
[accounts] => Array
(
[name] =>
)
[accounts] => Array
(
[id] => 84352
[a_id] => 552
[customer_number] => 1593428
[password] => asdasdasdasd
[completed] =>
[created_date] => 2012-04-11 01:00:03.429465
[expiration_date] => 2012-10-11 09:45:12.100404
)
)
)
[1] => Array
(
[1] => Array
(
[users] => Array
(
[name] =>
)
[accounts] => Array
(
[id] => 106101
[a_id] => 574
[customer_number] => 429381
[password] => dsadasdsdad
[completed] =>
[created_date] => 2012-09-08 15:40:44.702644
[expiration_date] => 2012-09-22 00:00:00
)
)
)
.....many more
I know I need to use nested foreach loops, but the difficult part is that I wants to parse name
to see if it's blank and I also want to clean up the dates to make it look nicer. Anyone know how I could accomplish this? It's pretty much looping the array and copying they array, but modifying certain elements. Thanks!