Display an array in a readable/hierarchical format

后端 未结 18 1193
北荒
北荒 2020-12-02 04:53

Here is the code for pulling the data for my array



        
18条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 05:42

    Try this:

    foreach($data[0] as $child) {
       echo $child . "\n";
    }
    

    in place of print_r($data)

提交回复
热议问题