Imagem de fundo

Analise o seguinte código em PHP e responda qual será a saída. function test(&$x) {...

Analise o seguinte código em PHP e responda qual será a saída.


function test(&$x) {

$x += 5;

return $x;

}

$a = 10;

$b = test($a);

echo $a . “, “ . $b;

?>


A

10, 10


B

10, 15


C

15, 10


D

15, 15