Programming Languages PHP Objective
Mar 15, 2013

A variable $word is set to “HELLO WORLD”, which of the following script returns in title case?

Choose the correct answer:
A) echo ucwords($word)
B) echo ucwords(strtolower($word)
C) echo ucfirst($word)
D) echo ucfirst(strtolower($word)
Detailed Explanation

Option B is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback