★ wanayoo — archive 1999 http://www.php.net/manual/function.strtolower.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Strings
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Strings
* AddCSlashes
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* count_chars
* crc32
* crypt
* echo
* explode
* flush
* get_html_translation_table
* get_meta_tags
* hebrev
* hebrevc
* htmlentities
* htmlspecialchars
* implode
* join
* levenshtein
* ltrim
* md5
* Metaphone
* nl2br
* ob_start
* ob_get_contents
* ob_end_flush
* ob_end_clean
* ob_implicit_flush
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* quotemeta
* rtrim
* sscanf
* setlocale
* similar_text
* soundex
* sprintf
* strcasecmp
* strchr
* strcmp
* strcspn
* strip_tags
* stripcslashes
* stripslashes
* stristr
* strlen
* str_pad
* strpos
* strrchr
* str_repeat
* strrev
* strrpos
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* substr_count
* substr_replace
* trim
* ucfirst
* ucwords
Manual: strtolower
View the source code for this pageSearch the site



Previous page
 strtok
 Updated
Sat, 12 Aug 2000
strtoupper 
Next page


strtolower

(PHP3 , PHP4 )

strtolower -- Make a string lowercase

Description

string strtolower (string str)

Returns string with all alphabetic characters converted to lowercase.

Note that 'alphabetic' is determined by the current locale. This means that in i.e. the default "C" locale, characters such as umlaut-A (Ä) will not be converted.

Example 1. Strtolower() example


$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);	
print $str; # Prints mary had a little lamb and she loved it so
     

See also strtoupper() and ucfirst().


User Contributed Notes: strtolower


steve@dom.de
28-Oct-1999 12:02
If for any reason you are stuck with default config (ie php is hosted for you on an ISP/virtual server rather than your own machine) Then use strtr() to translate umlaut chars into upper and lower case equivalents.

<pre>
ie $string=strtr("äöü","ÄÖÜ");
</pre>




bjorn.ihrner@datarutin.se
13-Apr-2000 08:14
Just a note: strtolower($string); does NOT convert ÅÄÖ to åäö.. /Björn.


bjorn.ihrner@datarutin.se
13-Apr-2000 08:17
Forgot to tell you. that bug is only tested on PHP4 Beta 4. (Don't know if it does the same on PHP 3.0.xx)


 About Notes


Previous page
 strtok
 Updated
Sat, 12 Aug 2000
strtoupper 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.