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.
Differences between echo and print