"> What will be the output of the following PHP code?<?phpecho

Home » PHP » PHP Strings » Question
  1. What will be the output of the following PHP code?
    <?php
    echo str_pad("Salad", 10)." is good.";
    ?>
    1. Interview was good.
    2. was Interview good
    3. good was interview
    4. Nothing
    5. None of these
Correct Option: A

The str_pad() function pads a string with a specified number of characters.



Your comments will be displayed only after manual approval.