Site icon Tutorials Website: Upgrade Your Web Development & Coding Skills

What will be the output of following?

function changevalue(&$y){

$y=$y+7;

}

$num=8;

changevalue($num);

echo $num;

It would be: 15
Reference will take the value and will add 5 to it.

Exit mobile version