최신Zend-Technologies Zend Certified PHP Engineer - 200-550무료샘플문제
What is the output of the following code?
$f = function () { return "hello"; };
echo gettype($f);
What is the result of the following code?
define('PI', 3.14); class T {
const PI = PI; } class Math {
const PI = T::PI; } echo Math::PI;
Which of the following is NOT a valid function declaration?
How many times will the function counter() be executed in the following code?
function counter($start, &$stop)
{
if ($stop > $start)
{
return;
}
counter($start--, ++$stop); }
$start = 5; $stop = 2; counter($start, $stop);
Which of the following statements about SOAP is NOT true?
What is the output of the following code?
echo "22" + "0.2", 23 . 1;
Which class of HTTP status codes is used for redirections?
Which of the following is true about stream contexts? (Choose 2)
CORRECT TEXT
Which PHP function sets a cookie and URL encodes its value when sending it to the browser?
How should class MyObject be defined for the following code to work properly? Assume $array is an array and MyObject is a user-defined class.
$obj = new MyObject(); array_walk($array, $obj);
What is the pattern modifier for handling UTF-8 encoded preg_* functionality?
What would be the output of the following code?
namespace MyFramework\DB;
class MyClass {
static function myName() {
return __METHOD__;
}
}
print MyClass::myName();
Given a DateTime object that is set to the first second of the year 2014, which of the following samples will correctly return a date in the format '2014-01-01 00:00:01'?