Question from the PHP - Fundamentals test

Pass by reference in PHP

Easy

What is the output of the following code ?

function add_five(&$value) {
	$value += 5;
}
$num = 2;
add_five($num);
echo $num;
Author: ThéoStatus: PublishedQuestion passed 1267 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!