Last active
September 2, 2016 21:01
-
-
Save joelstransky/2da2f6d7aea9b494b1153d66646d2b49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$the_results; | |
function only_run_once() { | |
if ( isset($the_results) ) { | |
return $the_results; | |
} | |
// do stuff | |
$the_results = $some_result_value; | |
return $the_results; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment