RE: [PHP] Exit Function
| From: | Boget, Chris | Date: | Wed, 31 Jan 2001 22:35:27 +0000 |
| Subject: | RE: [PHP] Exit Function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37549@lists.php.net to get a copy of this message | ||
> What is the way to exit a function? For example:
> function FooBar() {
> if ($foo = $bar)
> Exit_this_Function;
> ## otherwise execute the rest of this function
> }
function FooBar() {
if ($foo = $bar)
return 0;
}
## otherwise execute the rest of this function
}
Chris