apcu_fetch
apcu_fetch
Fetch a stored variable from the cache
mixed **apcu_fetch** mixed $key bool $success
Fetches an entry from the cache.
key
The used to store the value (with
). If an array is passed then each
element is fetched and returned.
key``apcu_store
successSet to true in success and false in failure.
The stored variable or array of variables on success; false on failure
Voorbeeld: A example
<?php
$bar = 'BAR';
apcu_store('foo', $bar);
var_dump(apcu_fetch('foo'));
?>
string(3) "BAR"
apcu_store``apcu_delete``APCUIterator