Re: Exit Function
| From: | Chris Lee | Date: | Wed, 31 Jan 2001 22:38:39 +0000 |
| Subject: | Re: Exit Function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37554@lists.php.net to get a copy of this message | ||
function some($foo, $bar)
{
if ($foo != $bar)
return ;
...
}
--
Chris Lee
Mediawaveonline.com
lee@mediawaveonline.com
""Karl J. Stubsjoen"" <karlflips@kstub.com> wrote in message
news:004701c08bd5$eecbc340$0afc020a@kstubsjoen...
> 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
> }
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>