"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code?

    <?php

    $str = "Hello World"

    echo wordwrap($str,5,"n");

    ?>

  2. A.

     Hello World

    B.

     Hello
    World

    C.

     Hell 0 Wo rld

    D.

     World

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment