Link Countable

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@296747 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2010-03-24 20:54:21 +00:00
parent 2097f64a0c
commit d87240a673

View file

@ -19,7 +19,7 @@
For objects, if you have
<link linkend="ref.spl">SPL</link> installed, you can hook into
<function>count</function> by implementing interface
<literal>Countable</literal>. The interface has exactly one method,
<classname>Countable</classname>. The interface has exactly one method,
<function>count</function>, which returns the return value for the
<function>count</function> function.
</para>
@ -65,7 +65,7 @@
</para>
<para>
If <parameter>var</parameter> is not an array or an object with
implemented <literal>Countable</literal> interface,
implemented <classname>Countable</classname> interface,
<literal>1</literal> will be returned.
There is one exception, if <parameter>var</parameter> is &null;,
<literal>0</literal> will be returned.