php 中 print_r 函数输出的数组内容不排列。为了让它输出的好看些。如,数组有多层。分段列出,我们可以这样写: 1.echo "<pre>"; 2.print_r xxxxx; 3.echo "<pre>";