Hi, > Depends on the use of the function. (Output functions should produce > output shouldn't they?!) Best option probably is to specifiy an argument > that allows to choose wether to output or to return. > If you return text you should return by reference to prevent unnecessary > memory consumption.
Recently, I have been doing more of returning than echoing from inside a function. I found it more useful I guess. Seems the general consensus is to simply keep the echoing from the functions most of the time, and in some minor cases, use it. To me, this makes sense. Thanks all for your opinions. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php