Examveda
Examveda

What will be the output of the following PHP code ?
<?php
function time($string)
{
    echo strtr("Towe Pa55", "ow5", $string);
}
time("ims");
?>

A. Time Pa55

B. Towe Pa55

C. Towe Pass

D. Time Pass

Answer: Option D

Solution(By Examveda Team)

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

This Question Belongs to PHP >> Functions

Join The Discussion

Related Questions on Functions