What is the output of the following code?
$a = 3;
switch ($a) {
case 1: echo 'one'; break;
case 2: echo 'two'; break;
default: echo 'four'; break;
case 3: echo 'three'; break;
}
Question No 2
What is "instanceof" an example of?
Question No 3
Which of the following may be used in conjunction with CASE inside a SWITCH statement?
Question No 4
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
Question No 5
Which of the following are valid identifiers? (Choose 3)