There is slight difference between echo and print. But both are used to print line of code to the browser.

Difference between echo and print

Difference between echo and print

There are two main difference between echo and print:-

  1. echo does not return any value while print returns true or false on successful print.
  2. echo is faster than print.

I advice you to use echo in your code and don’t use echo and print both because it will confuse other programmers who watch your code.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Set your Twitter account name in your settings to use the TwitterBar Section.