Query: ucfirst
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UCFIRST(3) 1 UCFIRST(3) ucfirst - Make a string's first character uppercaseSYNOPSISstring ucfirst (string $str)DESCRIPTIONReturns a string with the first character of $str capitalized, if that character is alphabetic. Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (a) will not be converted.PARAMETERSo $str - The input string.RETURN VALUESReturns the resulting string.EXAMPLESExample #1 ucfirst(3) example <?php $foo = 'hello world!'; $foo = ucfirst($foo); // Hello world! $bar = 'HELLO WORLD!'; $bar = ucfirst($bar); // HELLO WORLD! $bar = ucfirst(strtolower($bar)); // Hello world! ?>SEE ALSOlcfirst(3), strtolower(3), strtoupper(3), ucwords(3). PHP Documentation Group UCFIRST(3)
Related Man Pages |
---|
mb_convert_case(3) - php |
ucwords(3) - php |
classkit_method_remove(3) - php |
mb_strtoupper(3) - php |
runkit_method_remove(3) - php |
Similar Topics in the Unix Linux Community |
---|
Beginner Perl help Please |
Uppercase to lowercase |
Shell script to convert words to Title case |
Convert text between exact matching patterns to Title case |