You want to extract the pieces of a date string, which looks like this:
"2005-11-02". Which of the following pieces of code will properly assign $year,
$month and $day with their respective values?
What will be the value of $b after running the following code?
$a = array('c', 'b', 'a');
$b = (array)$a;
Which of these protocols are NOT governed by the W3C in their latest versions? (Choose 2)
What is the output of the following script?
1
2 function fibonacci ($x1, $x2)
3 {
4 return $x1 + $x2;
5 }
6
7 $x1 = 0;
8 $x2 = 1;
9
10 for ($i = 0; $i < 10; $i++) {
11 echo fibonacci($x1, $x2) . ',';
12 }
13 ?>
Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?