Get Answers to all your Questions

header-bg qa

What is the difference between echo() and print()?

Answers (1)

best_answer

Echo () used to output data on the screen, has no return value, can take multiple parameters, and is relatively bit faster than print.

Print () used to output data on the screen, has a return value of 1 so can be used in expressions, can only take one argument and is relatively bit slower than Echo.

Posted by

Deependra Verma

View full answer