【发布时间】:2011-06-24 07:25:30
【问题描述】:
我看过一些在线漂亮的代码打印模块。有人知道将多维数组格式化为可读显示的方法吗?
例如,翻译这个:
数组(83){[0]=>数组(2){ ["name"]=> string(11) "CE2 选项" ["类型"]=> 字符串(5) "标题" } [1]=> 数组(1){[“类型”]=>字符串(4)“打开” } [2]=> 数组(5){ [“名称”]=> 字符串(8)“模板”[“desc”]=> 字符串(638)“测试描述” ["id"]=> 字符串(9) "my_theme" [“类型”]=> 字符串(14)“选择模板” ["选项"]=> 数组(13) {
进入这个...
array(83) {
[0]=> array(2) { ["name"]=> string(11) "My Options" ["type"]=> string(5) "title" }
[1]=> array(1) { ["type"]=> string(4) "open" }
[2]=> array(5) {
["name"]=> string(8) "Template"
["desc"]=> string(638) "Test description"
["id"]=> string(9) "my_theme"
["type"]=> string(14) "selectTemplate"
["options"]=> array(13) {
[0]=> string(10) "test"
【问题讨论】:
标签: php pretty-print