From 032feb14d68ec815e6e4f063c92d1d6d8c17a49b Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Mon, 10 Jun 2002 09:15:37 +0000 Subject: [PATCH] - Properly document when a var is considered to be NULL and when not, closes #13577. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@85243 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 25 ++++++++++++++++++++++++- reference/var/functions/is-null.xml | 9 +++++++-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/language/types.xml b/language/types.xml index 5da7916527..d7fec8b5fd 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -1807,6 +1807,26 @@ $bar->do_foo(); The null type was introduced in PHP 4 + + A variable is considered to be &null; if + + + + it has been assigned the constant &null;. + + + + + it has not been set to any value yet. + + + + + it has been unset. + + + + Syntax @@ -1820,6 +1840,9 @@ $var = NULL; + + See also is_null and unset. + diff --git a/reference/var/functions/is-null.xml b/reference/var/functions/is-null.xml index 7e290f57e4..224b8b223e 100644 --- a/reference/var/functions/is-null.xml +++ b/reference/var/functions/is-null.xml @@ -1,5 +1,5 @@ - + @@ -19,7 +19,12 @@ &false; otherwise. - See also is_bool, + See the &null; type + when a variable is considered to be &null; and when not. + + + See also &null;, + is_bool, is_numeric, is_float, is_int,