echo 比较适合用来打印字符串,数字 print_r 一般打印数组 var_dump 可以打印所有类型,打印变量的类型及其值 转载于:https://www.cnblogs.com/RzCong/p/5555005.html