What is the output of the following code?
try {
class MyException extends Exception {};
try {
throw new MyException;
}
catch (Exception $e) {
echo "1:";
throw $e;
}
catch (MyException $e) {
echo "2:";
throw $e;
}
}
catch (Exception $e) {
echo get_class($e);
}
Which of the following statements about PHP is false? (Choose 2)
What is the name of the method that can be used to provide read access to virtual properties in a class?
Which of the following rules must every correct XML document adhere to? (Choose 2)
PHP's array functions such as array_values() can be used on an object if the object...
How can you determine whether a PHP script has already sent cookies to the client?
What is the pattern modifier for handling UTF-8 encoded preg_* functionality?
Consider the following code:
$result = $value1 ??? $value2;
Which operator needs to be used instead of ??? so that $result equals $value1 if $value1 evaluates to true, and equals $value2 otherwise? Just state the operator as it would be required in the code.
Which PHP function sets a cookie and URL encodes its value when sending it to the browser?
What is the output of the following code?
$a = 'a'; $b = 'b';
echo isset($c) ? $a.$b.$c : ($c = 'c').'d';
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
Zend Free Exams |
---|
![]() |