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