Easy Tutorial
❮ Func Xml Set External Entity Ref Handler Func Ftp Nb Get ❯

PHP ucfirst() Function

PHP String Reference Manual

Example

Convert the first character of "hello" to uppercase:


Definition and Usage

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

Related functions:


Syntax

Parameter Description
string Required. Specifies the string to convert.

Technical Details

Return Value: Returns the converted string.
PHP Version: 4+
--- ---

❮ Func Xml Set External Entity Ref Handler Func Ftp Nb Get ❯