View the Complete Blog on ZCE
function updateValue(&$number)
{
$number = $number +1;
}
$val = 9;
echo updateValue(&$val);
function updateValue(&$number)
{
$number = $number +1;
}
$val = 9;
echo updateValue(&$val);
Answer: It will also return blank
becuase despite updating $number is not returned from the function
No comments:
Post a Comment