View Full Version : echo vs print.. any difference?
09-20-2011, 01:12 PM
Is there actually any difference or is one of them in use?
09-20-2011, 01:14 PM
No, there is no difference. echo and print are the same thing.
09-20-2011, 01:15 PM
I find different answers, but this seems like the best explanation:
09-20-2011, 01:23 PM
Actually that article is wrong.
If you look at print (http://uk3.php.net/print) on the php website, take a look at return values:
Returns 1, always.
09-20-2011, 01:30 PM
Thank you, mlseim.
09-20-2011, 01:53 PM
Echo has a shortcut to use it: <?=$var?>
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.