关于more elements...无法输出所有数组的问题

<?php

//phpinfo();die;
var_dump(get_declared_classes());die;
?>

运行结果:

<pre class='xdebug-var-dump' dir='ltr'>
<b>array</b> <i>(size=144)</i>
  0 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'stdClass'</font> <i>(length=8)</i>
  1 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'Exception'</font> <i>(length=9)</i>
  2 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'ErrorException'</font> <i>(length=14)</i>
  3 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'Closure'</font> <i>(length=7)</i>
  4 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'Generator'</font> <i>(length=9)</i>
  5 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'DateTime'</font> <i>(length=8)</i>
  6 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'DateTimeImmutable'</font> <i>(length=17)</i>
  7 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'DateTimeZone'</font> <i>(length=12)</i>
  8 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'DateInterval'</font> <i>(length=12)</i>
  9 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'DatePeriod'</font> <i>(length=10)</i>
  <i>more elements...</i>
</pre>

解决方法 在php.ini文件添加 xdebug.var_display_max_children = 10000

[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 = "c:/fghjk/apache/tmp"
xdebug.show_local_vars=0
xdebug.var_display_max_children = 10000

再次运行所有结果


<pre class='xdebug-var-dump' dir='ltr'>
<b>array</b> <i>(size=144)</i>
  0 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'stdClass'</font> <i>(length=8)</i>
  1 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'Exception'</font> <i>(length=9)</i>
  2 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'ErrorException'</font> <i>(length=14)</i>
  ......
  140 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'SQLite3'</font> <i>(length=7)</i>
  141 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'SQLite3Stmt'</font> <i>(length=11)</i>
  142 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'SQLite3Result'</font> <i>(length=13)</i>
  143 <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'XSLTProcessor'</font> <i>(length=13)</i>
</pre>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值