可能重复:
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');
这四个之间有什么区别吗?另外,圆括号是否有所作为?
为什么所有的“重复”答案都会导致“尽可能地重复答案”? – Bonzo 2012-06-13 18:06:32