최신Zend-Technologies Zend Certified Engineer - 200-710무료샘플문제
How many elements does the array $matches from the following code contain?
$ str = "The cat sat on the roof of their house.";
$ matches= preg_split("/(the)/i", $str, -1, PREG_SPLIT_DELIM_CAPTURE);
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?
class Base {
protected static function whoami() {
echo "Base ";
}
public static function whoareyou() {
static::whoami();
class A extends Base {
public static function test() {
Base::whoareyou();
}
self::whoareyou();
parent::whoareyou();
A::whoareyou();
static::whoareyou();
public static function whoa mi() {
echo "A";
class B extends A {
}
public static function whoa mi() {
echo "B ";
B::test();
What is the output of the following code?
class Test {
public function _call($name, $args)
{
call_user_func_array(array('static', "test$name"), $args);
}
public function testS($1) {
echo "$1,";
class Test2 extends Test {
public function testS($1) {
echo "$1,$1,";
}
$ test = new Test2();
$ test->S('A');
What DOMElement method should be used to check for availability of a non-namespaced attribute?
Which function can NOT help prevent cross-site scripting? (Choose 2)
You need to escape special characters to use user input inside a regular expression. Which functions
would you use? (Choose 2)
Which of the following parts must a XML document have in order to be well-formed?
Which class of HTTP status codes is used for server error conditions?
Consider the following table data and PHP code, and assume that the database supports transactions.
What is the outcome?
Table data (table name "users" with primary key "id"):

PHP code (assume the PDO connection is correctly established):
$ dsn = 'mysql:host=localhost;dbname=exam';
$ user= 'username';
$ pass='********';
$ pdo = new PDO($dsn, $user, $pass);
try {
$ pdo->exec("INSERT INTO users (id, name, email) VALUES (6, 'bill', '[email protected]')");
$ pdo->begin();
$ pdo->exec("INSERT INTO users (id, name, email) VALUES (7, 'john',
'[email protected]')");
throw new Exception();
} catch (Exception $e) {
$ pdo->roll Back();
Which of the following statements about PHP is false? (Choose 2)
Which methods can be used to overload object properties? (Choose 2)
What is the output of the following code?
function append($str)
{
$ str = $str.'append';
function prepend(&$str)
{
$ str = 'prepend'.$str;
$ string= 'zce';
append(prepend($string));
echo $string;
What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?
What is "instanceof" an example of?