PHP » PYTHON |
login |
register |
about
|
result = myStr[0].lower() + myStr[1:] or def lcfirst(s): res = s[0].lower() + s[1:] return res lcfirst(PHP 5 >= 5.3.0) lcfirst — Make a string's first character lowercase Description
string lcfirst
( string $str
)
Returns a string with the first character of str , lowercased 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. Parameters
Return ValuesReturns the resulting string. Examples
Example #1 lcfirst() example
<?php
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|