What will be the output of the following PHP 7.1 code snippet?
class Bar
{
public function checking()
{
return function() {
var_dump($this);
};
}
}
$object = new Bar;
$function = $object->checking();
$function();
?>
Correct Answer:
object(Bar)#1 (0) {
)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions