<<< Previous question <<< Question ID#0757.md >>> Next question >>>
What is the output of the following code?
function increment($val) {
return ++$val;
}
echo increment(1);
- A) 2
- B) 1
- C) null
- D) 0
Answer
Answer: A
What is the output of the following code?
function increment($val) {
return ++$val;
}
echo increment(1);
Answer: A