Re: [PHP-DEV] Strange behaviour in arrays

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 03:41, Martin Jansen wrote: > Taking the following script: > > $array = array("foo" => true, >"bar" => false >); > > print_r($array); > ?> > > The result of print_r is: > > Array ( [foo] => 1 [bar] => ) > > Shouldn't

[PHP-DEV] Strange behaviour in arrays

2002-02-04 Thread Martin Jansen
Taking the following script: true, "bar" => false ); print_r($array); ?> The result of print_r is: Array ( [foo] => 1 [bar] => ) Shouldn't false in the array definition result to 0 instead of nothing? - Martin -- Martin Jansen, <[EMA