Which line of code can be used to replace the INSERT comment in order to output "hello"?
class C {
public $ello = 'ello';
public $c;
public $m;
function __construct($y) {
$this->c = static function($f) {
// INSERT LINE OF CODE HERE
};
$this->m = function() {
return "h";
};
}
}
$x = new C("h");
$f = $x->c;
echo $f($x->m);
Dana
2 months agoRonny
25 days agoPeggie
28 days agoJustine
2 months agoDong
2 months agoLaurena
8 days agoLeonard
10 days agoEvelynn
11 days agoNichelle
17 days agoEladia
22 days agoShalon
1 months agoCandra
1 months agoVicky
2 months agoLetha
3 months agoWava
3 months agoIsadora
2 months agoKirk
2 months agoMary
3 months agoLacresha
3 months agoLetha
3 months ago