|
PHP5中文手册
defined(PHP 4, PHP 5) defined — Checks whether a given named constant exists 说明
bool defined
( string $name
)
Checks whether the given constant exists and is defined.
参数
返回值Returns TRUE if the named constant given by name has been defined, FALSE otherwise. 范例
Example#1 Checking Constants
<?php |