Skip to content

Instantly share code, notes, and snippets.

@blar
Created February 13, 2014 19:52
Show Gist options
  • Select an option

  • Save blar/8982521 to your computer and use it in GitHub Desktop.

Select an option

Save blar/8982521 to your computer and use it in GitHub Desktop.
<?php
class foo {
public static function bar() {
return 'foobar';
}
}
$callback = array('foo', 'bar');
var_dump($callback());
string(6) "foobar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment