Skip to content

Instantly share code, notes, and snippets.

@Tim-Machine
Created October 8, 2013 01:26
Show Gist options
  • Select an option

  • Save Tim-Machine/6877972 to your computer and use it in GitHub Desktop.

Select an option

Save Tim-Machine/6877972 to your computer and use it in GitHub Desktop.
// declaration
function foo()
{
// function body
}
// conditional declaration is *not* a side effect
if (! function_exists('bar')) {
function bar()
{
// function body
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment