4
What would be the difference between using print
or echo
in PHP, since both print a text on the screen.
When it is most advisable to use which?
echo "echo";
print "print";
4
What would be the difference between using print
or echo
in PHP, since both print a text on the screen.
When it is most advisable to use which?
echo "echo";
print "print";
14
They are very similar. Some differences:
print
echo
void
, therefore cannot be used in expressionsI pretend that print
does not exist. I never had to use as an expression that would be the only reason to use it.
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
I pretend that print does not exist. The smartest phrase I read today.
– ElvisP
And she was the first to read :D
– Maniero