"> What will be the output of the following PHP code?<?php$string

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    $string = "Interview Mania";
    echo wordwrap($string, 9, "\n");
    ?>
    1. Interview
    2. Mania
      Interview
    3. Mania
    4. Interview
      Mania
    5. None of these
Correct Option: D

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



Your comments will be displayed only after manual approval.