Re: Ending PHP
| From: | Matthew Fonda | Date: | Sat, 26 Mar 2005 04:36:22 +0000 |
| Subject: | Re: Ending PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211611@lists.php.net to get a copy of this message | ||
you could use die() or exit()
they both take an optional parameter of a string to display when called.
On Fri, 2005-03-25 at 20:12, Marquez Design wrote:
> I have an if statement, and if it is true, I want PHP not to continue.
>
> How do I do this?
>
> The following statement is true
>
> If ($a = $b){
>
> This
>
> }
>
> Do not continue to the next piece of code, if false, continue to the next
> piece of code.
>
> Thanks for any help.
>
> --
> Steve Marquez
smarquez@marquez-design.com
--
Regards,
Matthew Fonda
http://mfonda.info