How many times will the function counter() be executed in the following code?function counter($start, &$stop){if ($stop > $start){return;}counter($start--, ++$stop);}$start = 5;$stop = 2;counter($start, $stop);
Answer(s): C
How do you allow the caller to submit a variable number of arguments to a function?
Answer(s): B
What will the $array array contain at the end of this script?function modifyArray (&$array){foreach ($array as &$value){$value = $value + 1;}$value = $value + 2;}$array = array (1, 2, 3);modifyArray($array);
What is the output of the following code?class a{public $val;}function renderVal (a $a){if ($a) {echo $a->val;}}renderVal (null);
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!