Question
What will be the output of the following PHP code?
< ?php
$str = "Hello World"
echo wordwrap($str,5,"\n");
?>
< ?php
$str = "Hello World"
echo wordwrap($str,5,"\n");
?>
Answer: Option B
Was this answer helpful ?
The wordwrap() function wraps a string into new lines when it reaches a specific length.
Was this answer helpful ?
Submit Solution