[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] [doc-en] master: Improve description of `empty` return value
From: Theodore Brown via GitHub <noreply () php ! net>
Date: 2022-03-29 13:24:39
Message-ID: 49NgXddDTpKtJJw6b7KBVNfOsoZWd93iERXdrl7CM () main ! php ! net
[Download RAW message or body]
Author: Theodore Brown (theodorejb)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-03-29T15:21:54+02:00
Commit: https://github.com/php/doc-en/commit/4a07033f7ac5ab121357051cc94ec48b9f6f58fc
Raw diff: https://github.com/php/doc-en/commit/4a07033f7ac5ab121357051cc94ec48b9f6f58fc.diff
Improve description of `empty` return value
Previously it was written from the negative perspective, which was confusing to \
understand.
Closes GH-1430.
Changed paths:
M reference/var/functions/empty.xml
Diff:
diff --git a/reference/var/functions/empty.xml b/reference/var/functions/empty.xml
index 7f8317c1882..9ccb94a9657 100644
--- a/reference/var/functions/empty.xml
+++ b/reference/var/functions/empty.xml
@@ -38,9 +38,9 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns &false; if <parameter>var</parameter> exists and has a non-empty, \
non-zero value, + Returns &true; if <parameter>var</parameter> does not exist or \
has a value that is empty or equal to zero, aka falsey, see <link \
linkend="language.types.boolean.casting">conversion to \
boolean</link>.
- Otherwise returns &true;.
+ Otherwise returns &false;.
</para>
</refsect1>
<refsect1 role="examples">
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic