-
What will be the output of the following PHP code?
<?php
$Message = "this is important message...";
echo ucwords($Message);
?>
-
- Error
- This Is Important Message...
- Nothing
- this is important message...
- 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).