[PHP-DEV] PHP 4.0 Bug #8048 Updated: Error in count function From: jimw <email protected>
Date: 01/22/01

ID: 8048
Updated by: jimw
Reported By: martin <email protected>
Old-Status: Analyzed
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:

bogus example removed.

Previous Comments:
---------------------------------------------------------------------------

[2001-01-06 03:49:20] cynic <email protected>
-> documentation problem

---------------------------------------------------------------------------

[2000-12-03 08:21:54] stas <email protected>
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 <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>