On Wed, Feb 06, 2002 at 05:25:15PM +0100, Alex Kiesel wrote :
> 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 t
Hi,
On Wed, 6 Feb 2002 17:25:15 +0100
Alex Kiesel <[EMAIL PROTECTED]> wrote:
> Well, at least I find it quite elegant. :)
it is indeed, but it does not represent the "PHP-way-of-handling" [tm]
things. If we have "in", we also can have $foo = [0..99] as a shorthand
notation for arrays.
just my
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 ||