Код: Выделить всё
foreach (new APCUIterator('/^counter\./') as $counter) {
echo "$counter[key]: $counter[value]\n";
apc_dec($counter['key'], $counter['value']);
}
Спасибо за ваше время.
Подробнее здесь: https://stackoverflow.com/questions/568 ... rs-of-apcu