MCQs > IT & Programming > PHP 5 > class Example { public function abcFunction() { return Closure::fromCallable([$this, } private function privateFunction($param) { var_dump($param); } } $expFunc = (new Example)->abcFunction(); $expFunc('My New Example');?>

PHP 5 MCQs

What will be the output of the following PHP 7.1 code?

class Example

{

public function abcFunction()

{

return Closure::fromCallable([$this, }

private function privateFunction($param)

{

var_dump($param);

}

}

$expFunc = (new Example)->abcFunction();

$expFunc('My New Example');?>

Answer

Correct Answer:

string(14)

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

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it