(PHP 3, PHP 4 )
Returns TRUE if the named constant given by name has been defined, FALSE otherwise.
Пример 1. Checking Constants
<?php if (defined("CONSTANT")){ // Note that it should be quoted echo CONSTANT; } ?>
See also define(), constant(), get_defined_constants() and the section on Constants.