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

Discussion :: PHP - CS

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

    <?php

    function uppercase($string)

    {

    echo ucwords($string);

    }

    $wow = "uppercase";

    $wow("Time to live king size");

    ?>

  2. A.

     TIME TO LIVE KING SIZE

    B.

     Time to live king size

    C.

     Uppercase

    D.

     Time To Live King Size

    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