RE: Some questions about if and isset.

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

 



[snip]
<?php
if (isset($variable))
{
	if ($variable < $constant)
	{
	Execute this code if $variable is less than $constant
	}
	elseif ($variable > $constant)
	{
	Execute this code if $variable is more than $constant
	}
	elseif ($variable == $constant)
	{
	Execute this code if $variable and $constant are equal
	}
}
else
{
Execute this code if $variable is not set
}
?>

-- 
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