Difference between echo() and print()

1) echo is faster than print. Because echo doesn’t have return parameter like print.

2) print behaves like function where echo not.

3) echo can take multiple parameter where print can’t.

NOTEecho is the prefer method.

Leave a Reply

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