Exam4Training

What is the output of the following code?

What is the output of the following code?

function increment ($val)

{

++$val;

$val= 1;

increment ($val);

echo $val;

Answer: 1

Exit mobile version