Zend PHP 5.3 Certification 200-530 Question # 68 Topic 7 Discussion

Zend PHP 5.3 Certification 200-530 Question # 68 Topic 7 Discussion

200-530 Exam Topic 7 Question 68 Discussion:
Question #: 68
Topic #: 7

What is the output of the following code?

1 <?php

2 function append($str)

3 {

4 $str = $str.'append';

5 }

6

7 function prepend(&$str)

8 {

9 $str = 'prepend'.$str;

10 }

11

12 $string = 'zce';

13 append(prepend($string));

14 echo $string;

15 ?>


A.

zceappend


B.

prependzceappend


C.

prependzce


D.

zce


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