Display an array in a readable/hierarchical format

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

Here is the code for pulling the data for my array



        
18条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 05:26

    I assume one uses print_r for debugging. I would then suggest using libraries like Kint. This allows displaying big arrays in a readable format:

    $data = [['Natural Child 1', 'Natural Child 2', 'Natural Child 3']];
    Kint::dump($data, $_SERVER);
    

提交回复
热议问题