What is the output of the following code?

What is the output of the following code?

function z($x) {

return function ($y) use ($x) {

return str_repeat($y, $x);

};

$a== z(2);

$b = z(3);

echo $a(3) . $b(2);
A . 22333
B . 33222
C . 33322
D . 222333

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments