|
PHP5中文手册
apc_define_constants(PECL apc:3.0.0-3.0.9) apc_define_constants — Defines a set of constants for retrieval and mass-definition 说明
bool apc_define_constants
( string $key
, array $constants
[, bool $case_sensitive
] )
define() is notoriously slow. Since the main benefit of APC is to increase the performance of scripts/applications, this mechanism is provided to streamline the process of mass constant definition. However, this function does not perform as well as anticipated. For a better-performing solution, try the » hidef extension from PECL.
参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例
Example#1 apc_define_constants() example
<?php 上例将输出:
|