> Just a quick straw-poll really: > > What is your take on using 'return' when you end a function, if you > don't actually need to return a value? > > If you have to return say a true/false as the result of an operation, > then it's an obvious choice. But what if all the function does is > perform an action and then quit? Do you like to use 'return' at the > end of it anyway, or do you just let it run into the closing } ? > > Or do you perhaps do a 'return true' at the end, regardless, even if > the rest of your code never checks that value (on the basis that it > may do in the future) > I like to have all my functions return something so use return true. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php