diff --git a/reference/array/functions/count.xml b/reference/array/functions/count.xml index ed3bb8ff63..c0d051e94d 100644 --- a/reference/array/functions/count.xml +++ b/reference/array/functions/count.xml @@ -1,5 +1,5 @@ - + @@ -15,8 +15,15 @@ Returns the number of elements in var, - which is typically an array (since anything else will have - one element). + which is typically an array (since anything other than objects + will have one element). + + + For objects it returns the number of non static properties not taking + visibility into account. If you have SPL starting from PHP 5.1 you can + hook into coun() by implementing interface Countable. That interface + has exactly one method named count() which delivers the return value + for the count() function. If var is not an array, 1 will