What's the output of the ucwords function in this example?



What's the output of the ucwords function in this example?..

Answer / Tripuresh Misra

The ucwords() function converts the first character of each word to uppercase. If we use it on a string like 'hello world', the output will be 'Hello World'. Note that 'world' is considered as a single word since words are separated by spaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is php static function?

1 Answers  


Does exist in php?

1 Answers  


How to create a session? How to set a value in session?

1 Answers  


What is cookie and session in php?

1 Answers  


HOW we can use css

3 Answers   ConSim, IPsoft,


How is it possible to return a value from a function?

1 Answers  


Is php 5.6 secure?

1 Answers  


What is PHP?

8 Answers  


How can a cross-site scripting attack be prevented by php?

1 Answers  


What are magic constants in php?

1 Answers  


What is preg_match?

1 Answers  


Tell me how to find the length of a string?

1 Answers  


Categories