“
print_r is best for readability but it doesn’t print null/false values.
var_dump is best for checking types of values and lengths and null/false values.
var_export is simmilar to var_dump but it can be used to get the dumped string.
”
【总结】
print_r或var_dump或var_export,可以打印出可读性不错的变量信息。
转载请注明:在路上 » 【整理】php打印出可读的友好的变量的信息