note 45036 deleted from function.array-count-values by betz

From: Date: Fri, 05 Nov 2004 01:16:22 +0000
Subject: note 45036 deleted from function.array-count-values by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80113@lists.php.net to get a copy of this message
Note Submitter: Michael Douma ---- Beginning with PHP 5, array-count-values seems to have a problem counting strings which happen to be numbers. For example, with $myCount = array-count-values ( array ("1","2","2","3","3","3","z","z") ) ; I can print all the values in $myCount using join(), and $myCount["z"] yields the expected, but $myCount["1"] is INACCESSIBLE. Bug #29808. http://bugs.php.net/bug.php?id=29808

« previous php.notes (#80113) next »