Re: Ending PHP

From: Date: Sat, 26 Mar 2005 04:31:54 +0000
Subject: Re: Ending PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211610@lists.php.net to get a copy of this message
* Marquez Design <smarquez@marquez-design.com>: > I have an if statement, and if it is true, I want PHP not to continue. > > How do I do this? if ($a == $b) { exit(); } http://de3.php.net/exit > The following statement is true > > If ($a = $b){ btw: Most of the times you will want to user == in an if-statement :) Ciao, Gerhard

« previous php.general (#211610) next »