Skip to content

Instantly share code, notes, and snippets.

@wowo
Created February 9, 2012 22:21
Show Gist options
  • Save wowo/1783792 to your computer and use it in GitHub Desktop.
Save wowo/1783792 to your computer and use it in GitHub Desktop.
<?php
function closureTest(callable $callback) {
printf("Look, I'm running callback! '%s'\n", $callback());
}
closureTest(function() { return 'foo'; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment