mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Link Countable
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@296747 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2097f64a0c
commit
d87240a673
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue