Re: Ending PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Marquez Design <smarquez@xxxxxxxxxxxxxxxxxx>:
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux