From 3ae0b14dd06ea9d47728f366dfe2c29476a2468e Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Mon, 7 Dec 2020 14:40:21 +0000 Subject: [PATCH] Fix #79126: empty() documentation does not mention SimpleXML objects from empty tags To avoid duplication, we refer to falsey values instead. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351947 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/var/functions/empty.xml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/reference/var/functions/empty.xml b/reference/var/functions/empty.xml index 13d4c46d53..abaaab4ed9 100644 --- a/reference/var/functions/empty.xml +++ b/reference/var/functions/empty.xml @@ -46,21 +46,10 @@ &reftitle.returnvalues; - Returns &false; if var exists and has a non-empty, non-zero value. + Returns &false; if var exists and has a non-empty, non-zero value, + aka falsey, see conversion to boolean. Otherwise returns &true;. - - The following values are considered to be empty: - - "" (an empty string) - 0 (0 as an integer) - 0.0 (0 as a float) - "0" (0 as a string) - &null; - &false; - array() (an empty array) - - &reftitle.examples;