note 15228 added to functions.returning-values
| From: | neotalon at prodigy dot net | Date: | Sun, 02 Sep 2001 11:31:10 +0000 |
| Subject: | note 15228 added to functions.returning-values | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17531@lists.php.net to get a copy of this message | ||
Another VERY useful purpose of the return value that I use a lot, is that it will also end a
function.
as in say you had a function that did several things, and all of them had the opportunity to cause
an error, then you could use the return function to end the function along with send the error back
before it went on and did other things that would require the first step to have been completed.
http://www.php.net/manual/en/functions.returning-values.php