Making PHP var_dump() values display one line per value

前端 未结 14 1319
隐瞒了意图╮
隐瞒了意图╮ 2020-12-23 15:41

When I echo var_dump($_variable), I get one long, wrapping line with all varable\'s and values like

[\"kt_login_user\"]=>  string(8) \"teacher1\" [\"kt_lo         


        
14条回答
  •  不知归路
    2020-12-23 16:35

    You can press Ctrl+U to view the source code. Most Browsers will prettify the output there.

    var_dump is the ugliest way to debug.

提交回复
热议问题