Skip to content

Instantly share code, notes, and snippets.

@till
Created October 21, 2010 17:29
Show Gist options
  • Select an option

  • Save till/638917 to your computer and use it in GitHub Desktop.

Select an option

Save till/638917 to your computer and use it in GitHub Desktop.
<?php
$foobar = 'dwin r';
if (($foo = apc_fetch('foo', $success))) { // === true < stops working
var_dump($foo, $success);
}
if ($success === false) {
echo "STORING";
var_dump(apc_store('foo', $foobar));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment