PrepAway - Latest Free Exam Questions & Answers

What is the output of the following code?

What is the output of the following code?
<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 ?>
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
zceappend

B.
prependzceappend

C.
prependzce

D.
zce


Leave a Reply

Your email address will not be published. Required fields are marked *