adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code?
<?php
    $title = "O'malley wins the heavyweight championship!";
    echo ucwords($title);
?>

a.

O’Malley Wins The Heavyweight Championship!

b.

O’malley Wins The Heavyweight Championship!

c.

O’Malley wins the heavyweight championship!

d.

o’malley wins the heavyweight championship!

Posted under PHP

Answer: (d).o’malley wins the heavyweight championship!

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