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

Discussion :: PHP - CS

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

    <?php

    function time($string)

    {

    echo strtr("Towe Pa55", "ow5", $string);

    }

    time("ims");

    ?>

  2. A.

     Time Pa55

    B.

     Towe Pa55

    C.

     Towe Pass

    D.

     Time Pass

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The strtr() function translates certain characters in a string.


Be The First To Comment