"> 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 ucwords("this is an important.");
    ?>
    1. Error
    2. this is an important.
    3. Nothing
    4. This Is An Important.
    5. None of these
Correct Option: D

The ucwords() function converts the first character of each word in a string to uppercase.



Your comments will be displayed only after manual approval.