200-550 無料問題集「Zend-Technologies Zend Certified PHP Engineer」

What does the __FILE__ constant contain?

How can the id attribute of the 2nd baz element from the XML string below be retrieved from the SimpleXML object found inside $xml? <?xml version='1.0'?> <foo> <bar> <baz id="1">One</baz> <baz id="2">Two</baz> </bar> </foo>

Which php.ini setting is usually required to use an opcode cache?

Given the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates?
$date1 = new DateTime('2014-02-03');
$date2 = new DateTime('2014-03-02');

Which of the following items in the $_SERVER superglobal are important for authenticating the client when using HTTP Basic authentication? (Choose 2)

正解:B、D 解答を投票する
From your PHP application, how can you send the same header twice, but with different values?

You'd like to use the class MyDBConnection that's defined in the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?

What super-global should be used to access information about uploaded files via a POST request?

What function can be used to retrieve an array of current options for a stream context?

Given the following code, what will the output be:
trait MyTrait { private $abc = 1; public function increment() { $this->abc++; } public function getValue() { return $this->abc; }
}
class MyClass { use MyTrait; public function incrementBy2() { $this->increment(); $this->abc++; }
}
$c = new MyClass; $c->incrementBy2(); var_dump($c->getValue());

The following form is loaded in a browser and submitted, with the checkbox activated:
<form method="post">
<input type="checkbox" name="accept" />
</form>
In the server-side PHP code to deal with the form data, what is the value of $_POST['accept'] ?

Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?

You need to escape special characters to use user input inside a regular expression. Which functions would you use? (Choose 2)

正解:B、C 解答を投票する
How should you track errors on your production website?

What function can reverse the order of values in an array so that keys are preserved?

What is the output of the following code?
$text = 'This is text';
$text1 = <<<'TEXT'
$text
TEXT;
$text2 = <<<TEXT
$text1
TEXT;
echo "$text2";

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡