Re: Return or not to return, that is the question

From: Date: Wed, 30 May 2007 11:34:05 +0000
Subject: Re: Return or not to return, that is the question
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-255795@lists.php.net to get a copy of this message
On Wed, 2007-05-30 at 12:20 +0100, Dave Goodchild wrote: > If there is no need to return a value then I don't do so. However, the > function is going to process something, and surely you should check that the > processing has succeeded or failed? If you unit test, then returns become quite important, so I almost always return; --Paul

« previous php.general (#255795) next »