"> 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("i love interview mania!");
    ?>
    1. Interview Mania!
    2. Error
    3. i love interview mania!
    4. Nothing
    5. I Love Interview Mania!
Correct Option: E

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



Your comments will be displayed only after manual approval.