Blogger Information
Blog 5
fans 0
comment 0
visits 6056
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
echo,print_r,var_dump的区别
我的博客
Original
734 people have browsed it

1.png

print_r()第二个参数为true,则将结果输出到字符串;

print_r()和var_dump()函数,参数为对象时,仅输出对象属性;

echo和var_dump()可同时输出多个数据,print_r()仅接受单数据;

print与echo除可返回1之外,与echo完全一样。

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!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!