PHP_Compat::loadConstant

PHP_Compat::loadConstant()

PHP_Compat::loadConstant() -- Load a constant, or an array of constants

Description

Loads a constant, or an array of constants.

Parameter

mixed $constant

The name, or an array of names, of constants to load

Return value

mixed

TRUE if the constant was loaded.
FALSE if the constant was not loaded. Either unable to be included or already defined.
If you specified an array of constants to load, an array of TRUE/FALSE values is returned.

Note

This function should be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.