Why is echo faster than print?
问题 In PHP , why is echo faster than print? They do the same thing... Why is one faster than the other? Do they do exactly the same thing? 回答1: echo and print are virtually (not technically) the same thing. The (pretty much only) difference between the two is that print will return the integer 1 , whereas echo returns nothing. Keep in mind that neither is actually a function, but rather language constructs. echo allows you to pass multiple strings when using it as if it were a function (e.g.,