mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Empty object is not empty() in PHP 5 (bug #30337)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@171439 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
34d972684a
commit
bbe759badf
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.empty">
|
||||
<refnamediv>
|
||||
|
@ -16,10 +16,10 @@
|
|||
<function>empty</function> returns &false; if
|
||||
<parameter>var</parameter> has a non-empty and non-zero value. In
|
||||
otherwords, <literal>""</literal>, <literal>0</literal>,
|
||||
<literal>"0"</literal>, &null;, &false;, <literal>array()</literal>,
|
||||
<literal>var $var;</literal>, and objects with empty properties, are
|
||||
all considered empty. &true; is returned if <parameter>var</parameter>
|
||||
is empty.
|
||||
<literal>"0"</literal>, &null;, &false;, <literal>array()</literal>, and
|
||||
<literal>var $var;</literal> are all considered empty. In PHP 4 and
|
||||
earlier also objects with empty properties are considered empty while
|
||||
not in PHP 5. &true; is returned if <parameter>var</parameter> is empty.
|
||||
</para>
|
||||
<para>
|
||||
<function>empty</function> is the opposite of
|
||||
|
|
Loading…
Reference in a new issue