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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments