Hello,
Alex Kiesel wrote:
>
> Hi,
>
> I'd like to propose a new keyword: in. It should work like the
> SQL-in-expression.
>
> For example you have a variable $val and want to test whether it
> contains e.g. 1 or 2 or 99.
>
> At the moment I would choose between on of the following
> code-constructs:
>
> 1.) if ($var == 1 ||
> $var == 2 ||
> $var == 99) { // ...
switch($var)
{
case 1:
case 2:
case 99:
}
Regards,
Manuel Lemos
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php