"> 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 = "keep practicing at interviewmania";
    echo wordwrap($string, 15, "\n");
    ?>

    1. keep practicing at
    2. interviewmania
    3. keep practicing
      at
      interviewmania
    4. Error
    5. None of these
Correct Option: C

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



Your comments will be displayed only after manual approval.