PHP 4.0 Bug #8048 Updated: Error in count function
| From: | jimw@php.net | Date: | Tue, 23 Jan 2001 01:45:46 +0000 |
| Subject: | PHP 4.0 Bug #8048 Updated: Error in count function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44768@lists.php.net to get a copy of this message | ||
ID: 8048
Updated by: jimw
Reported By: martin@complinet.com
Old-Status: Analyzed
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:
bogus example removed.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-06 03:49:20] cynic@php.net
-> documentation problem
---------------------------------------------------------------------------
[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