Single Choice Not Set

QWhat will be the output of the following PHP code?
< ?php 
    echo ucwords("i love my country");
?>

ID: #2427 Functions in PHP MCQ 620 views
Question Info
#2427Q ID
Not SetDifficulty
Functions in PHP MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A I love my country
  • B i love my Country
  • C I love my Country
  • D I Love My Country
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.