I want to nest an array inside another array, my code will be similar to this
array(
'type' => 'FeatureCollection',
'features' => array(
array(
'type' => 'Feature',
'geometry' => array(
'coordinates' => array(-94.34885, 39.35757),
'type' => 'Point'
), // geometry
'properties' => array(
// latitude, longitude, id etc.
) // properties
), // end of first feature
array( ... ), // etc.
) // features
)
Where the outer section (features) encapsulates many other arrays. I need to loop through variables pulled from a json file which I've already decoded -- how would I loop through these sets of data? A foreach()?