What is the difference between echo and print statement?

1 answer

Answer

1262945

2026-07-10 04:00

+ Follow

The print construct always returns the integer 1, whereas the echo construct has no return value (and as a result, print is slightly slower to execute than echo). Additionally, should you use the parenthesis syntax for both constructs, echo will accept an infinite amount of string arguments whereas print only accepts one.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.