RTFM: http://www.php.net/manual/en/language.types.type-juggling.php
Peter Vereshagin wrote:
> Bogdan Stancescu wrote:
> >
> > Try in_array('pattern',array('')) and in_array(1,array(0)). The quirk you
> > found is predictable, as we know how PHP behaves when converting strings to
> > integer valu
Bogdan Stancescu wrote:
>
> Try in_array('pattern',array('')) and in_array(1,array(0)). The quirk you
> found is predictable, as we know how PHP behaves when converting strings to
> integer values...
you mean PHP converts string pattern to integer before apply pattern?
But what's the kind of te
Try in_array('pattern',array('')) and in_array(1,array(0)). The quirk you
found is predictable, as we know how PHP behaves when converting strings to
integer values... And 'pattern' evaluates to 0 -- '55pattern' for example
doesn't match -- but then again, what kinda word is that? :-)
HTH
Bogdan
3 matches
Mail list logo