Skip to content

Instantly share code, notes, and snippets.

@kojiromike
Created January 10, 2013 23:05
Show Gist options
  • Save kojiromike/4506569 to your computer and use it in GitHub Desktop.
Save kojiromike/4506569 to your computer and use it in GitHub Desktop.
lol php
<?php
class Foo {
function hw() {
return 'hello world';
}
}
$x = new Foo;
var_dump(is_callable(array($x, 'hw')));
-->
bool(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment