Zend 200-550 - Zend Certified PHP Engineer
What is the output of the following code?
$f = function () { return "hello"; };
echo gettype($f);
Which MIME type is always sent by a client if a JPEG file is uploaded via HTTP?
Which of the following is NOT a requirement for file uploads to work?
You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilites work? (Choose 2)
How can a SimpleXML object be converted to a DOM object?
Which of the following PHP values may NOT be encoded to a JavaScript literal using PHP's ext/json capabilities?
Which line of code can be used to replace the INSERT comment in order to output "hello"?
class C {
public $ello = 'ello';
public $c;
public $m;
function __construct($y) {
$this->c = static function($f) {
// INSERT LINE OF CODE HERE
};
$this->m = function() {
return "h";
};
}
}
$x = new C("h");
$f = $x->c;
echo $f($x->m);
Late static binding is used in PHP to:
Which of the following statements about exceptions is correct? (Choose 2)
Which of the following tasks can be achieved by using magic methods? (Choose 3)