From b35d824ee02fa96be97c6337b85acb4799102152 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Tue, 10 Jun 2003 04:48:56 +0000 Subject: [PATCH] Implement user notes: use isset for variables, see also function_exists, and make it clear the importance of passing in a string. Also some minor fixes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@130822 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/functions/defined.xml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/reference/misc/functions/defined.xml b/reference/misc/functions/defined.xml index 7f69f00454..d03061d205 100644 --- a/reference/misc/functions/defined.xml +++ b/reference/misc/functions/defined.xml @@ -1,5 +1,5 @@ - + @@ -18,23 +18,35 @@ Returns &true; if the named constant given by name has been defined, &false; otherwise. - + + + Checking Constants ]]> + + + If you're wanting to see if a variable exists, use + isset as defined only + applies to constants. + + See also define, constant, - get_defined_constants and the section on + get_defined_constants, + function_exists, and the section on Constants.