if(!preg_match("/^No[123]$/",$Var))
{
code
}
--
Darius Ivanauskas
On Wed, 29 Aug 2001, [iso-8859-1] Niklas Lamp�n wrote:
> Is it possible to write this shorter:
>
> if ($Var != "No1" && $Var != "No2" && $Var != "No3") {
> code
> };
>
>
> Niklas
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] If-statement Niklas Lamp�n
- [PHP] Re: If-statement Darius Ivanauskas
- [PHP] Re: If-statement Hugh Bothwell
- Re: [PHP] If-statement Ryan Fischer

