Posted by Praful on April 25, 2009
|
ucfirst :: (PHP 4, PHP 5)
|
|
| |
|
|
| |
ucfirst — Make a string’s first character uppercase
|
|
| |
|
|
| |
Description |
|
| |
|
|
| |
string ucfirst ( string $str )
Returns 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 (ä) will not be converted.
|
|
| |
|
|
| |
php quotes:
$foo = ‘hello world!’;
$foo = ucfirst($foo); // Hello world!
$bar = ‘HELLO WORLD!’;
$bar = ucfirst($bar); // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
:end quotes
|
|
This entry was posted on April 25, 2009 at 6:19 AM and is filed under Software, Technology, php.
Tagged: array, array_splice, black, blue, count_chars, empty, example, foreach, function, green, haystack, input, maroon, numeric, numeric position, offset, output, PHP 4, PHP 5, Php function, portion, position, purple, strpos, ucfirst, variable. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
ucfirst « News with Technology….. - 【23php】 said
[...] is the original: ucfirst « News with Technology….. Tags:calculate, calculate-the-sum, description, integer-or-float, internal, internal-pointer, [...]
I AM OSX » ucfirst « News with Technology….. said
[...] Read more from the original source: ucfirst « News with Technology….. [...]