Jump to content

Difference between echo and print?


eduard

Recommended Posts

The difference between ´echo´ and ´print´ is that the first output is on your screen and the second is on paper?

Link to comment
Share on other sites

no, not in the context of PHP. The only real difference seems to be their return value. Feel free to look these things up though.http://php.net/manual/en/function.echo.phphttp://php.net/manual/en/function.print.phpedit: it's not printing in the sense that you are thinking of. It's a server side scripting language, not a word processor.

Link to comment
Share on other sites

no, not in the context of PHP. The only real difference seems to be their return value. Feel free to look these things up though.http://php.net/manual/en/function.echo.phphttp://php.net/manual/en/function.print.phpedit: it's not printing in the sense that you are thinking of. It's a server side scripting language, not a word processor.
Ok, thanks!
Link to comment
Share on other sites

No, they both go to screen, or more specifically to the browser. There's an article about the differences here:http://www.learnphponline.com/php-basics/php-echo-vs-print
Thanks! (although it´s still too difficult for me!) But I liked ´pressing the T´!
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...