Easy
What is the output of the following code ?
function repeat($s, $n) {
$c = "ba";
for ($i = 0; $i < $n; $i++) {
$c .= $s;
}
return $c;
}
echo repeat("na", 3);
Author: ThéoStatus: PublishedQuestion passed 136 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about PHP