2.5.3. capitalize()

string capitalize ( string text )

Returns a string with the first character of text capitalized, if that character is alphabetic. Note that 'alphabetic' is determined by the current locale set by the PHP application.

Example 2.12. capitalize() function

{* shows "Hello world" *}
{capitalize("hello world")}