← All built-ins / ucfirst()
ucfirst()
ucfirst(string $s): string
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | input string |
Return value
The string with its first character uppercased.
Example
echo ucfirst("hello world");Hello world
| Name | Type | Description |
|---|---|---|
| $s | string | input string |
The string with its first character uppercased.
echo ucfirst("hello world");Hello world