marcnyc wrote:what is that '($output = TRUE)' and how do I use it? I never encountered that?
It's similar a function parameter that's been given a default value. Thus, if you don't specify the parameter's value in a call to the function (e.g. your old code, which wouldn't have a value for it) then PHP will assign this default value to the the parameter.
See this section in the manual for more information on default values in functions.
marcnyc wrote:is it not true that echo makes the script using the function faster (less code lines) and that it frees up memory because no variables need to be stored?
First of all, less code lines does not imply that a PHP script will run faster.
Second, the amount of memory we're talking about is probably in the order of a few bytes... nothing to write home about.