echo 和 print 之间的差异:
- echo - 能够输出一个以上的字符串
- print - 只能输出一个字符串,并始终返回 1
- echo 比 print 稍快,因为它不返回任何值。
echo "This", " string", " was", " made", " with multiple parameters.";
print "I'm about to learn PHP!";
echo 和 print 之间的差异:
echo "This", " string", " was", " made", " with multiple parameters.";
print "I'm about to learn PHP!";