Created
March 11, 2015 18:01
-
-
Save jimrubenstein/178bd0fcb8ff73b3b233 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ php callable_test.php | |
bool(false) | |
bool(true) | |
<?php | |
class Test { | |
public function __invoke() {} | |
} | |
var_dump(is_callable('Test')); | |
var_dump(is_callable(new Test)); | |
readfile(__FILE__); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment