What is the output of the following code?
function increment ($val)
{
++$val;
$val= 1;
increment ($val);
echo $val;
Answer: 1
What is the output of the following code?
function increment ($val)
{
++$val;
$val= 1;
increment ($val);
echo $val;
Answer: 1