apc_fetch
(PECL apc:3.0.0-3.0.9)
apc_fetch — Récupère une variable stockée depuis le cache
Description
mixed apc_fetch
( string $key
)
Valeurs de retour
La variable stockée en cas de succès, FALSE si une erreur survient.
Exemples
Example#1 Exemple avec apc_fetch()
<?php
$bar = 'BAR';
apc_store('foo', $bar);
var_dump(apc_fetch('foo'));
?>
L'exemple ci-dessus va afficher :
string(3) "BAR"