200-550試験無料問題集「Zend-Technologies Zend Certified PHP Engineer 認定」

What is the result of the following code?
class T {
const A = 42 + 1; } echo T::A;

In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)

CORRECT TEXT
Which SPL class implements fixed-size storage?
正解:
SplFixedArray
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?

What is the output of the following code?
echo "22" + "0.2", 23 . 1;

Which of the following is NOT true about PHP traits? (Choose 2)

Transactions are used to...

Which of the following tasks can be achieved by using magic methods? (Choose 3)

正解:A,B,D 解答を投票する
How can you determine whether a PHP script has already sent cookies to the client?

CORRECT TEXT
What is the output of the following code?
function increment (&$val)
{
return $val + 1; }
$a = 1;
echo increment ($a); echo increment ($a);
正解:
22
In the following code, which line should be changed so it outputs the number 2:
class A {
protected $x = array(); /* A */
public function getX() { /* B */
return $this->x; /* C */
}
}
$a = new A(); /* D */ array_push($a->getX(), "one"); array_push($a->getX(), "two"); echo count($a->getX());