41
What will be the output of the following PHP code?
<?php
echo ucwords("i love my country");
?> Answer & Solution
Answer: Option
D
Solution:
The ucwords() function converts the first character of each word in a string to uppercase.