-
What will be the output of the following PHP code?
<?php
$title = "interview mania founded by manjesh ojha";
echo ucwords($title);
?>
-
- Error
- Interview Mania Founded By Manjesh Ojha
- interview mania founded by manjesh ojha
- Nothing
- None of these
Correct Option: B
The ucwords() function capitalizes the first letter of each word in a string. Its prototype follows: string ucwords(string str).