Hi,
On Sun, 2011-11-13 at 02:37 +0100, Antoine Delignat-Lavaud wrote:
>
> if(($v1=="a1" || $v=="a2" || ...) && ($v2=="b1" ||
> $v2=="b2" ||...)
> && ...)
This could also be written as
if (in_array($v1, ["a1", "a2", ...]) && in_array($v2m ["b1",
"b2", ...]))
> by replacing them with:
>
> if($v1 in ["a1","a2",...] && $v2 in
> ["b1","b2",...])
I would certainly not add it to 5.4.
For 5.5 I also have doubts whether it's worth the additional keyword and
opcode. Yes it will, most likely, but this is an extension to the
grammar ...
johannes