Tuesday, 4 September 2012

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

A.      echo ucwords($word.)
B.      echo ucwords(strtolower($word).
C.      echo ucfirst($word).
D.      echo ucfirst(strtolower($word).

 Ans: B

No comments: