New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Zend PHP 5 Certification 200-500 Question # 58 Topic 6 Discussion

Zend PHP 5 Certification 200-500 Question # 58 Topic 6 Discussion

200-500 Exam Topic 6 Question 58 Discussion:
Question #: 58
Topic #: 6

What is the output of the following script?

1 <?php

2 class a

3 {

4 public $val = 10;

5 }

6

7 function renderVal (a $a)

8 {

9 return $a->$val;

10 }

11

12 renderVal (new a);

13 ?>


A.

Nothing


B.

NULL


C.

A fatal error


D.

$val


E.

10


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.