MCQs > IT & Programming > PHP 5 > Output of the following code? class Bar { public function checking() { return function() { var_dump($this); }; } } $object = new Bar; $function = $object->checking(); $function(); ?>

PHP 5 MCQs

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();

?>

Answer

Correct Answer:

object(Bar)#1 (0) {

)


Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More PHP 5 MCQ Questions

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it