I want to loop through the following array.
array(2) {
[0]=> array(6) {
[0]=> string(10) \"excel_id \"
[1]=> string(12) \"excel_na
If you tried anything at all you should have found foreach. this will loop through all of your array values. You can simply loop through a multi-dimensional array by using a multi-dimensional foreach like this:
foreach($array as $parentValue)
{
foreach($parentValue as $childValue)
{
// your code
}
}
try this:
foreach ($main_array as $outer_entry){
foreach($outer_entry as $entity){
print_r($entity);
}
}