"> What will be the output of the following PHP code? < ?php echo ucwords(" "> " /> " />
Sail E0 Webinar
Question
What will be the output of the following PHP code?
< ?php
echo ucwords("i love my country");
?>
Options:
A .  I love my country
B .  i love my Country
C .  I love my Country
D .  I Love My Country
Answer: Option D


The ucwords() function converts the first character of each word in a string to uppercase.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers