Echo vs print

Print and Echo are actually both called language constructs .
  • echo is faster
  • Echo does not return a value, but has been considered as a faster executed command.
  • echo is a construct. echo takes multiple parameters.
  • echo is just an statement not a function.
  • print is slower.
  • Print returns a value much like a normal function would. But despite common belief, Print is not a function, as we can see by the fact that it doesn’t require parenthesis to work.
  • Returning a value degrades system performance.
  • Using the print method can return a true/false value. This may be helpful during a script execution of some sort.
  • print is also a construct but print does not take multiple parameters.

2 thoughts on “Echo vs print

  1. I have been absent for a while, but now I remember why I used to love this web site. Thanks, I will try and check back more frequently. How frequently you update your site?

  2. Normally I don’t learn article on blogs, but I would like to say that this write-up very forced me to check out and do it! Your writing taste has been surprised me. Thank you, very great post.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s