What is the output of the following code? class Number { private $v = 0; public function
__construct($v) { $this->v = $v; } public function mul() { return function ($x) { return $this->v
* $x; }; } } $one = new Number(1); $two = new Number(2); $double =
$two->mul()->bindTo($one); echo $double(5);

A.
5
Correct anwser is 50
0
1
…sorry is 5 … 50 is for question 110. Apologize for confusion
2
0
class Number {
private $v = 0;
public function __construct($v) {
$this->v = $v;
}
public function mul() {
return function ($x) {
return $this->v * $x;
};
}
}
$one = new Number(1);
$two = new Number(2);
$double = $two->mul()->bindTo($one);
echo $double(5);
1
0