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');?>
Correct Answer:
string(14)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions