Strange behaviour in arrays

From: Date: Mon, 04 Feb 2002 11:41:09 +0000
Subject: Strange behaviour in arrays
Groups: php.dev 
Request: Send a blank email to php-dev+get-79091@lists.php.net to get a copy of this message
Taking the following script: <?php $array = array("foo" => 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, <mail@martin-jansen.de> http://www.martin-jansen.de/

« previous php.dev (#79091) next »