PrepAway - Latest Free Exam Questions & Answers

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;

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 *