adplus-dvertising
frame-decoration

Question

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");
?>

a.

TIME TO LIVE KING SIZE

b.

Time to live king size

c.

Uppercase

d.

Time To Live King Size

Posted under Functions in PHP PHP

Answer: (d).Time To Live King Size

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