Blog : PHP ucwords() Function

PHP ucwords() Function

--------------------------------------------------------------------------------
 Complete PHP String Reference
--------------------------------------------------------------------------------

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

Syntax
ucwords(string)  

Parameter Description
string Required. Specifies the string to convert


--------------------------------------------------------------------------------

Example
echo ucwords("hello world");
?>  

The output of the code above will be:

Hello World