PHP_Compat::loadConstant()

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

Synopsis

require_once 'PHP/Compat.php';

mixed PHP_Compat::loadConstant (mixed $constant)

Описание

Loads a constant, or an array of constants.

Параметр

mixed $constant

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

Возвращаемое значение

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.

Пример

You may also load a constant without using the class.

Заметка

Эта функция должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ