Web >> Development >> PHP >>  How to test whether a constant, variable, function is defined

constant: if ( defined('NameOfConstant') { ... variable if ( defined($VariableName) { .. function if ( function_exists('FunctionName') { ..