Interview Questions and Answers

What are the differences between echo and print ?

Both method print and echo print the output in the browser but there is a difference between print and echo

  • print method returns the boolean value after printing the output. It is slower than the echo method.
  • echo does not return any value after printing the output. it is faster than the print method.

Read more…

Differences between echo and print

Leave a Reply

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

× How can I help you?