Jump to content

Difference between echo and print?


eduard
 Share

Recommended Posts

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.

Edited by thescientist
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...