Single Choice Not Set

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

ID: #2397 PHP String and Regular Expression 571 views
Question Info
#2397Q ID
Not SetDifficulty
PHP String and Regular ExpressionTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O
  • B O
  • C O
  • D o
Correct Answer

Explanation

The ucwords() function capitalizes the first letter of each word in a string. Its prototype follows:string ucwords(string str)

Share This Question

Challenge a friend or share with your study group.