echo
statement considered marginally faster than the
print
statement since it doesn't return any value. •
print
always returns an integer value, which is 1.
$result = print 10;
echo $result; // output: 1
• Using
print
, we cannot pass multiple arguments.
print 10,20,30; // error
by Levani Makhareishvili
2 years ago
PHP
echo/print
1
Pro tip: use ```triple backticks around text``` to write in code fences