Miscellany
public text v1 · immutable<?php
function foo($refresh = FALSE) {
static $storage;
if ($refresh) {
unset($storage);
}
if (!isset($storage)) {
$storage['x'] = microtime();
}
return $storage['x'];
}
echo foo() ."\n";
echo foo(TRUE) ."\n";
echo foo() ."\n";