"> What will be the output of the following PHP code ?<?phpfunction

Home » PHP » PHP Functions » Question
  1. What will be the output of the following PHP code ?
    <?php
    function fun($str)
    {
    echo strtr("Towe Pa55", "ow5", $str);
    }
    fun("ims");
    ?>
    1. Time Pass
    2. Error
    3. Towe Pa55
    4. Nothing
    5. None of these
Correct Option: A

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



Your comments will be displayed only after manual approval.