1,格式化输出 pre
$sites = array
(
"runoob"=>array
(
"php教程",
"http://www.dc3688.com"
),
"google"=>array
(
"Google 搜索",
"http://www.96net.com.cn"
),
"taobao"=>array
(
"淘宝",
"http://www.huthon.com"
)
);
print("<pre>"); // 格式化输出数组
var_dump($sites);
print("</pre>");
1,普通输出
var_dump($sites);或者 print_r(($sites)
原文:https://blog.51cto.com/13959155/2456806