doujiu8479 2014-11-28 21:35
浏览 36
已采纳

在做var_dump时很难读

I have recently installed the new wampserver 2.5 (with php 5.5.12) due to a problem I had with the wamp I had installed on my laptop.

The thing is that when doing var_dump the info is not displayed as it used to display, the new format is for example>

array(4) { ["title"]=> string(0) "" ["type"]=> array(3) { ["registered"]=> string(1) "1" ["prepay"]=> string(1) "2" ["preregistered"]=> string(1) "0" } ["date"]=> array(3) { ["age"]=> string(0) "" ["from"]=> string(0) "" ["to"]=> string(0) "" } ["number"]=> string(0) "" }

which is unreadable! How come I used to see before like this when doing a var_dump? I didn't have to user xdebug or anything like it, neither use the tags.. how do I fix this?

how I used to see when doing var_dump

  • 写回答

3条回答 默认 最新

  • dongluan7821 2014-11-28 23:07
    关注

    WAMPServer has come with XDEBUG configured for many version now.

    With XDEBUG activated in WAMPServer 2.5 you will get a result that looks just like your picture, it is generated by XDEBUG, but when you deactivate XDEBUG, you will get the standard PHP output that you are complaining about.

    Look at your php.ini file ( use the wampmanager menus to edit it )

    wampmanager -> PHP -> php.ini
    

    At the bottom you should see this section which activates XDEBUG

    zend_extension = "d:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"
    ;
    [xdebug]
    xdebug.remote_enable = off
    xdebug.profiler_enable = off
    xdebug.profiler_enable_trigger = off
    xdebug.profiler_output_name = cachegrind.out.%t.%p
    xdebug.profiler_output_dir = "d:/wamp/tmp"
    xdebug.show_local_vars=0
    

    Make sure you have not removed this or amended any configurations.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵