helly Mon Nov 1 16:11:43 2004 EDT
Modified files:
/phpdoc/en/reference/array/functions count.xml
Log:
- Update
http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/count.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/reference/array/functions/count.xml
diff -u phpdoc/en/reference/array/functions/count.xml:1.12
phpdoc/en/reference/array/functions/count.xml:1.13
--- phpdoc/en/reference/array/functions/count.xml:1.12 Mon Sep 6 16:13:39 2004
+++ phpdoc/en/reference/array/functions/count.xml Mon Nov 1 16:11:40 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.count">
<refnamediv>
@@ -15,8 +15,15 @@
</methodsynopsis>
<para>
Returns the number of elements in <parameter>var</parameter>,
- which is typically an <type>array</type> (since anything else will have
- one element).
+ which is typically an <type>array</type> (since anything other than objects
+ will have one element).
+ </para>
+ <para>
+ 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.
</para>
<para>
If <parameter>var</parameter> is not an array, <literal>1</literal> will