"/>
Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. What will be the output of the following PHP code?

    <?php

    echo ucwords("i love my country");

    ?>

  2. A.

     I love my country

    B.

     i love my Country

    C.

     I love my Country

    D.

     I Love My Country

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment