Echo is marginally faster than print, and print returns a value, echo does not.
Echo allows comma separated arguments which it will concatenate. Print accepts only a single argument, but this is hardly a deal-breaker, because you can concatenate with a dot anyway.
Echo does not have a place in the precedence table, which means you can't use it in a complex expression.
That said ... for most cases, the major significant difference is:
Echo is quicker to type :)
Print outputs a single string, echo can output multiple strings. (It's in the help file.)
1,994 views
Usually answered in minutes!
×