PHP 4.0 Bug #8048 Updated: Error in count function

From: Date: Sat, 06 Jan 2001 08:49:21 +0000
Subject: PHP 4.0 Bug #8048 Updated: Error in count function
Groups: php.dev 
Request: Send a blank email to php-dev+get-43150@lists.php.net to get a copy of this message
ID: 8048 Updated by: cynic Reported By: martin@complinet.com Status: Analyzed Old-Bug Type: *Function Specific Bug Type: Documentation problem Assigned To: Comments: -> documentation problem Previous Comments: --------------------------------------------------------------------------- [2000-12-03 08:21:54] stas@php.net Indeed, it always returns number of elements (it's coded this way). Anybody knows why it's the other way in the manual? --------------------------------------------------------------------------- [2000-11-30 04:27:28] martin@complinet.com The manual page for the 'count' function says that arrays with null elements will be ignored. This is not true. If you try the example it returns 6 as opposed to 4 as stated. I have tested this on various systems and found the same result. Thank You, Martin --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8048

« previous php.dev (#43150) next »