echo 只能输出标量,一个值,不能输出数组和对象
print_r()格式化输出值,加参数true,输出到字符串
var_dump()输出类型和值,可以输出更多信息
通常使用print_r()即可满足,有时需要使用var_dump()
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!