How to loop through the following php array?

后端 未结 2 948
无人及你
无人及你 2021-01-29 16:05

I want to loop through the following array.

array(2)  {
    [0]=> array(6) {
        [0]=> string(10) \"excel_id \"
        [1]=> string(12) \"excel_na         


        
2条回答
  •  终归单人心
    2021-01-29 16:54

    try this:

    foreach ($main_array as $outer_entry){
    
        foreach($outer_entry as $entity){
            print_r($entity);
        }
    
    }
    

提交回复
热议问题