【发布时间】:2011-04-02 08:20:07
【问题描述】:
可能的重复:
How are echo and print different in PHP?
Is there any difference between ‘print’ and ‘echo’ in PHP?
What’s the difference of echo,print,print_r in PHP?
在 PHP 中有几种打印输出的方法;包括但不限于:
echo 'Hello';
echo ('Hello');
print 'Hello';
print ('Hello');
这四个有什么区别吗?另外,括号有什么区别吗?
【问题讨论】:
-
为什么所有“重复”的答案也会导致“尽可能封闭的重复答案”?