[PHP] in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Hi guys and gals, I'm not screaming Bug! Bug! but this _does_ look 'illogical' to me. I've searched the archives, but found no earlier conversation. Sorry if I missed it. Consider the following code: var_dump(in_array('test', array(0))); What does this return? I expect bool(false), but it

Re: [PHP] in_array not operating as 'expected'

2004-11-09 Thread Marek Kilimajer
Ing. Ivo F.A.C. Fokkema wrote: Hi guys and gals, I'm not screaming Bug! Bug! but this _does_ look 'illogical' to me. I've searched the archives, but found no earlier conversation. Sorry if I missed it. Consider the following code: var_dump(in_array('test', array(0))); What does this return? I