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

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code?
    <?php
    echo str_pad("This", 10)." theory is good.";
    ?>
    1. This theory is good.
    2. Error
    3. Nothing
    4. This theory is good.
    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.