-
What will be the output of the following PHP code ?
<?php
function uppercase($str)
{
echo ucwords($str);
}
$fun = "uppercase";
$fun("time to do a great job.");
?>
-
- Error
- Time To Do A Great Job.
- time to do a great job.
- Nothing
- None of these
Correct Option: B
The ucwords() function converts the first character of each word in a string to uppercase.