查看PHP中的大数组 [英] viewing big arrays in PHP

查看:157
本文介绍了查看PHP中的大数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,我的桌子上降落一种面向对象的PHP应用程序。当我做一个大阵的的print_r 的var_dump ,我可以得到18000+行。

I am trying to understand an OO PHP application that landed on my desk. When I do a print_r or var_dump of a large array, I can get 18000+ lines.

有一个在线工具或类,可以用来查看和搜索结果更好?比如我有一个名为COMPANY_NAME,这是三个层次的深度价值,它需要一定的时间来想出一个办法直接访问它。

Is there an on-line tool or class that can used to view and search the results better? For instance I have value named "company_name" which is three levels deep, it can take time to figure out a way to access it directly.

推荐答案

我会成立 Eclipse和XDebug的,并运行通过调试的code。但是,即使没有调试器,你可以设置只Xdebug的,并且得到的var_dump增强输出。

I would set up Eclipse and XDebug and run the code through the debugger. But even without the debugger, you can set up just xdebug, and get enhanced outputs of var_dump.

例如:

这篇关于查看PHP中的大数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆