Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code ?
    <?php
    function str($Message)
    {
    $Message = ucwords($Message);
    echo lcfirst($Message);
    }
    str("this is important...");
    ?>
    1. this Is Important...
    2. this is important...
    3. Error
    4. Nothing
    5. None of these
Correct Option: A

ucwords() changes all the first letters to capitals. lcfirst() changes first letter of a string to small.



Your comments will be displayed only after manual approval.