note 15228 deleted from functions.returning-values by torben
| From: | torben@php.net | Date: | Mon, 14 Jan 2002 00:11:01 +0000 |
| Subject: | note 15228 deleted from functions.returning-values by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24784@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.