<?php class test { function a() { echo 'test::a'; } } $callable = array(new test(), 'a'); if (is_callable($callable)) { echo 'is callable!'; } else { echo 'not callable'; } $callable();
You have javascript disabled. You will not be able to edit any code.