What is the length of a string returned by: md5(rand(). TRUE);
Depends on the value returned by rand() function
32
24
16
64
What is the output of the following code?
A parser error, try cannot be followed by multiple catch
1:Exception
1:MyExeption
2:MyException
MyException
When would you use classes and when would you use namespaces?
Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions
Use classes for performance-sensitive code, and namespaces when readability matters more
Use namespaces for performance-sensitive code, and classes when readability matters more
Always use them; namespaces as always superior to classes
What method can be used to find the tag via the DOM extension?
getElementById()
getElementsByTagName()
getElementsByTagNameNS()
getElementByName()
findTag()
Assuming UTF-8 encoding, what is the value of $count?
4
5
7
0
What will the following function call print?
22
22.00
022.000000
22.000000
Consider the following two files. When you run test.php, what would the output look like?
12,12
12,24
24,12
24,24
PHP Fatal error: Cannot redeclare strlen()
What is the difference between the spaceship operator (<=>) and the strcmp() function?
There is no difference in functionality
strcmp() returns a Boolean value, the spaceship operator a number
strcmp() does a case-intensive comparison, the spaceship operator does not
The spaceship operator returns -1, 0 or 1; strcmp() may return any integer