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
12 days agoPeggie
15 days agoJustine
1 months agoDong
2 months agoNichelle
4 days agoEladia
9 days agoShalon
23 days agoCandra
28 days agoVicky
1 months agoLetha
2 months agoWava
2 months agoIsadora
1 months agoKirk
1 months agoMary
2 months agoLacresha
2 months agoLetha
3 months ago