ExamVeda
Login
Home
This question belongs to PHP Regular Expressions
Regular Expressions
?

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

Answer & Solution
Correct Answer: Option B
The ucwords() function capitalizes the first letter of each word in a string. Its prototype follows: string ucwords(string str).
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.