What is the output of the following code?function fibonacci (&$x1 = 0, &$x2 = 1){$result = $x1 + $x2;$x1 = $x2;$x2 = $result;return $result;}for ($i = 0; $i < 10; $i++) {echo fibonacci() . ', ';}
Answer(s): B
What is the output of the following code?function ratio ($x1 = 10, $x2){if (isset ($x2)) {return $x2 / $x1;}}echo ratio (0);
Answer(s): D
Which of the following is NOT a valid function declaration?
CORRECT TEXTWhat is the output of the following code?function increment (&$val){return $val + 1;}$a = 1;echo increment ($a);echo increment ($a);
Answer(s): A
Post your Comments and Discuss Zend 200-550 exam with other Community members:
To protect our content from bots for real learners like you, we ask you to register for free. Sign in or sign up now to continue with the 200-550 material!