Echo vs. print statement.

echo() and print() are language constructs in PHP, both are used to output strings. The speed of both statements is almost the same.

echo() can take multiple expressions whereas print cannot take multiple expressions.

Print return true or false based on success or failure whereas echo doesn't return true or false.

Asked 30 Nov, 15 at 12:12 AM

Mukesh Thakur

Answer

Not answersed yet.