adplus-dvertising
frame-decoration

Question

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

Posted under Functions in PHP PHP

Answer: (d).Time Pass

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs