PHP·98 questions

How do echo and print work?

Answer
echo — output, no return value.
print — returns 1, slightly slower.
echo 'a', 'b' — multiple arguments.
print only one argument.
Short tag: <?= $var ?>.
Was this answer helpful?

More questions in this topic

Related questions from other topics