"> What will be the output of the following PHP code? < ?php $str = "Hello "> " /> " />
Sail E0 Webinar
Question
What will be the output of the following PHP code?
< ?php
$str = "Hello World"
echo wordwrap($str,5,"\n");
?>
Options:
A .  Hello World
B .       HelloWorld
C .       Hello world
D .  World
Answer: Option B


The wordwrap() function wraps a string into new lines when it reaches a specific length.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers