php Programming Glossary: isclosure
Testing for a PHP Closure without referring to the Closure internal class http://stackoverflow.com/questions/4127959/testing-for-a-php-closure-without-referring-to-the-closure-internal-class Closure class. The seemingly obvious ReflectionFunction isClosure method seems to be be almost useless by the time you've done.. r new ReflectionFunction a fails if a is a Functor if r isClosure return true return false Test case TEST CASE class CallBackClass.. question You can also use ReflectionFunctionAbstract isClosure Checks if closure Example poorMansLambda create_function ''..
|