|
apc_define_constants
Defines a set of constants for retrieval and mass-definition
(PECL apc:3.0.0-3.0.9)
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.
Note:
To remove a set of stored constants (without clearing the entire cache), an empty array may be passed as the constants parameter, effectively clearing the stored value(s). Parameters
ExamplesExample 211. apc_define_constants() example<?php The above example will output: 123 |