Question: 1
Consider the following XML code:
PHP 5.5 in 42 Hours
Learning PHP 5.5 The Hard Way
Which of the following SimpleXML calls prints the name of the second book?
(Let $xml = simplexml_load_file("books.xml"); .) (Choose 2)
Question: 2
What will the following function call print?
printf('%010.6f', 22);
Question: 3
What is the output of the following code?
echo 0x33, ' monkeys sit on ', 011, ' trees.';
Question: 4
Which sentence describes the following regular expression match?
preg_match('/^\d+(?:\.[0-9]+)?$/', $test);
Question: 5
What is the return value of the following code: substr_compare("foobar", "bar", 3);