You are here : phpstringlcfirst

lcfirst() - string

Returns a string with the first character of
   str , lowercased if that character is
   alphabetic.
Parameters :
  • str - The input string.

  • Syntax

    string lcfirst
        ( string $str
       )


    Example

    <?php$foo = 'HelloWorld';$foo = lcfirst($foo);             // helloWorld$bar = 'HELLO WORLD!';$bar = lcfirst($bar);             // hELLO WORLD!$bar = lcfirst(strtoupper($bar)); // hELLO WORLD!?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference