|
PHP5中文手册
get_defined_constants(PHP 4 >= 4.0.7, PHP 5) get_defined_constants — Returns an associative array with the names of all the constants and their values 说明
array get_defined_constants
([ mixed $categorize
] )
Returns the names and values of all the constants currently defined. This includes those created by extensions as well as those created with the define() function. 参数
返回值
更新日志
范例
Example#1 get_defined_constants() Example
<?php 上例的输出类似于:
|