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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The ucwords() function capitalizes the first letter of each word in a string. Its prototype follows:string ucwords(string str)
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic