I have an array that has a nested array shown below, my goal is to use PHP and loop through this array pulling out both the parent and child data.
$NestedArray = array(
"Name" => array(
"Phone"=>"Text",
"Email"=>"12"
)
"Company" => array(
"Phone"=>"Text",
"Email"=>"12"
)
);
Will someone please show me how to loop through this array using php. Thank you.
The foreach construct provides an easy way to iterate over arrays.See here