What is the output of the following code?

What is the output of the following code?

function append($str)

{

$str = $str.’append’;

function prepend(&$str)

{

$str = ‘prepend’.$str;

$string= ‘zce’;

append(prepend($string));

echo $string;
A . zceappend
B . prependzceappend
C . prependzce
D . zce

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments