Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Alternative PHP Cache : apc_define_constants

apc_define_constants

Defines a set of constants for retrieval and mass-definition (PECL apc:3.0.0-3.0.9)
bool apc_define_constants ( string key, array constants [, bool case_sensitive] )

Example 211. apc_define_constants() example

<?php
$constants
= array(
   
'ONE'   => 1,
   
'TWO'   => 2,
   
'THREE' => 3,
);
apc_define_constants('numbers', $constants);
echo
ONE, TWO, THREE;
?>

The above example will output:

123

Change Language


Follow Navioo On Twitter
apc_add
apc_cache_info
apc_clear_cache
apc_compile_file
apc_define_constants
apc_delete
apc_fetch
apc_load_constants
apc_sma_info
apc_store
eXTReMe Tracker