Blog : PHP ucfirst() Function

 PHP ucfirst() Function

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

Definition and Usage
The ucfirst() function converts the first character of a string to uppercase.

Syntax
ucfirst(string)  

Parameter Description
string Required. Specifies the string to convert


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

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

The output of the code above will be:

Hello world