¡@

Home 

php Programming Glossary: testclosure

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

if and only if the passed argument is a Closure. function testClosure a Must be Callback Labmda Functor or Closure if is_callable.. closure function echo Is it a closure n echo Closure . testClosure closure yes no . n echo Null . testClosure null yes no . n echo.. echo Closure . testClosure closure yes no . n echo Null . testClosure null yes no . n echo Array . testClosure array yes no . n echo..