Description
int defined
(string name)
Returns true if the named constant given by name has been defined, false otherwise.
Example 1. Checking Constants
<?php if (defined("CONSTANT")){ // Note that it should be quoted echo CONSTANT; // } ?> |
|
See also define() and the section on Constants.