count() return values
| From: | Marco Cucinato | Date: | Sun, 02 Sep 2001 12:23:08 +0000 |
| Subject: | count() return values | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969337389@lists.php.net to get a copy of this message | ||
Hi,
the docs say count() function returns the number of elements of a
variable, or 1 if it's not an array, or 0 if the array is void or the
variable isn't set.
I think that the paragraph (array.xml:1826)
"Returns 1 if the variable is not an array."
should be changed to
"Returns 1 either if the variable is not an array or the array
contains just one element."
do you agree?
--
Marco Cucinato