htm的<pre>标签,能非常标准的显示数组格式 echo "<pre>";print_r($arr);echo "<pre>"; 转载于:https://www.cnblogs.com/wangyuman26/p/5531281.html