Zend PHP 5 Certification 200-500 Question # 1 Topic 1 Discussion

Zend PHP 5 Certification 200-500 Question # 1 Topic 1 Discussion

200-500 Exam Topic 1 Question 1 Discussion:
Question #: 1
Topic #: 1

What is the output of the following code?

class test {

public $value = 0;

function test() {

$this->value = 1;

} function __construct() {

$this->value = 2;

}}

$object = new test();

echo $object->value;


A.

2


B.

1


C.

0


D.

3


E.

No Output, PHP will generate an error message.


Get Premium 200-500 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.