downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<joinlevenshtein>
Last updated: Thu, 26 Jun 2008

lcfirst

(No version information available, might be only in CVS)

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

str

The input string.

Return Values

Returns the resulting string.

Examples

Example #1 lcfirst() example

<?php
$foo
= 'HelloWorld';
$foo = lcfirst($foo);            // helloWorld

$bar = 'HELLO WORLD!';
$bar = lcfirst($bar);            // hELLO WORLD!
$bar = lcfirst(strtoupper($bar)); // hELLO WORLD!
?>



add a noteadd a note User Contributed Notes
Make a string's first character lowercase
There are no user contributed notes for this page.




<joinlevenshtein>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs