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() . ','; }

🎲 Try a Random Question  |  Total Questions in Quiz: 149  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
200-550 Test: Zend Certified PHP Engineer — practice the complete quiz, review flashcards, or try a random question.


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() . ','; }