note 30959 added to function.constant

From: Date: Fri, 04 Apr 2003 11:30:06 +0000
Subject: note 30959 added to function.constant
Groups: php.notes 
Request: Send a blank email to php-notes+get-46219@lists.php.net to get a copy of this message
?!? People, I don't get this. "constant() will return the value of the constant indicated by name. constant() is useful if you need to retrieve the value of a constant, but do not know it's name. i.e. It is stored in a variable or returned by a function." Could it be constant(name) in the first phrase, and constant() in the second phrase? Could anyone give an example of using constant() with NO parameters, please? The sample code above is an example for constant(parameter) with name GIVEN, that means that the user DOES know the name. :) -- http://www.php.net/manual/en/function.constant.php http://master.php.net/manage/user-notes.php?action=edit+30959 http://master.php.net/manage/user-notes.php?action=delete+30959 http://master.php.net/manage/user-notes.php?action=reject+30959

« previous php.notes (#46219) next »