From 308eaf0256e0d3be9c5baf9495b6263fb66f233c Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sat, 16 Nov 2002 10:50:29 +0000 Subject: [PATCH] Use defined() for constants. See also @ and defined(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@104416 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/var/functions/isset.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/reference/var/functions/isset.xml b/reference/var/functions/isset.xml index e4c296dcc2..81c70b7add 100644 --- a/reference/var/functions/isset.xml +++ b/reference/var/functions/isset.xml @@ -1,5 +1,5 @@ - + @@ -33,7 +33,9 @@ Warning isset only works with variables as passing anything - else will result in a parse error. + else will result in a parse error. For checking if + constants are set use the + defined function. @@ -95,8 +97,10 @@ var_dump( array_key_exists('hello', $a) ); // TRUE See also empty, - unset, and - array_key_exists. + unset, defined, + array_key_exists and the error control + @ + operator.