Zend Certified PHP Engineer 200-550 Question # 4 Topic 1 Discussion

Zend Certified PHP Engineer 200-550 Question # 4 Topic 1 Discussion

200-550 Exam Topic 1 Question 4 Discussion:
Question #: 4
Topic #: 1

What is the output of the following code?

class a

{

public $val;

}

function renderVal (a $a)

{

if ($a) {

echo $a->val;

}

}

renderVal (null);


A.

A syntax error in the function declaration line


B.

An error, because null is not an instance of 'a'


C.

Nothing, because a null value is being passed to renderVal()


D.

NULL


Get Premium 200-550 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.