I have been into PHP lately (like almost 2 years already) and it is just now that I got curious about the difference of print and echo.

Well… both outputs something. It is good to know that both are language constructs and not real functions. It would be good practice to not use paretheses in these operations. Like so…

print (“Haller World!”); // not recommended
print “Haller World!”; // recommended

Which is faster? I was asking this question and lead me to this site.

echo is apparently faster by 4%. Now… 4%… hmmm… would it really matter? My guess is that it would because what if your site is accessed around 10 million times daily. This is a bit of an overkill but who knows.

Well… that is that. I have to stop now, gotta change all the printS in my code to echoS.

Heheheh.