<?php $bar = 'BAR';apc_add('foo', $bar);var_dump(apc_fetch('foo')); echo "\n";$bar = 'NEVER GETS SET';apc_add('foo', $bar);var_dump(apc_fetch('foo')); echo "\n";?>
The above example will output:
string(3) "BAR" string(3) "BAR"