What will be the output of the following PHP code?
<?php
$str = "Hello World";
echo wordwrap($str,5,"<br>\n");
?>
Hello<br> World
Correct:
Hello<br> World
Explanation: The wordwrap()
function wraps a string into new lines when it reaches a specific length.