<<< Previous question <<< Question ID#0755.md >>> Next question >>>
Take a look at the following code
function myFunction($a) {
$a++;
}
$b = 1;
myFunction($b);
What code do you need to replace so that $b has the value 2 at the end of the script? (May be multiple answers)
- A) Line 01: Replace $a with &$a
- B) Line 02: Replace $a++ with $a += 2;
- C) Line 02: Replace $a++ with $a *= 2;
- D) Line 05: Replace $b with &$b
Answer
Answer: A