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
1 months agoPeggie
Justine
22 days agoDong
1 months agoShalon
8 days agoCandra
13 days agoVicky
28 days agoLetha
2 months agoWava
2 months agoIsadora
26 days agoKirk
27 days agoMary
2 months agoLacresha
2 months agoLetha
2 months ago