defined()
defined - Checks whether a given named constant exists
Syntax
bool defined (
string $name)
Arguments
- name - The constant name.
Description
Checks whether the given constant exists and is defined.
Version
PHP 4, 5
Return value
Returns TRUE if the named constant given by name has been defined, FALSE otherwise.