This is a short example of an array that I am working with.
Array ( [0] => Array ( [Name] => somename [Attributes] => Array ( [Body] => somebody
[Region] => someregion [State] => somestate [Url] => someurl [Date] => somedate [Tz] =>
sometz [Title] => sometitle [City] => somecity ) ) [1] => Array ( [Name] => somename1
[Attributes] => Array ( [Body] => somebody1 [Region] => someregion1 [State] => somestate1
[Url] => someurl1 [Date] => somedate1 [Tz] => sometz1 [Title] => sometitle1 [City] =>
somecity1 ) ) )
I just need help with the foreach statement to get the values of each array.
Any example of sorting these arrays based on the date would be appreciated too.
Thanks
It helps to look at php documentation:
http://php.net/manual/en/control-structures.foreach.php
In this case you just want to do: