downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mb_strwidth> <mb_strtolower
[edit] Last updated: Fri, 23 Mar 2012

view this page in

mb_strtoupper

(PHP 4 >= 4.3.0, PHP 5)

mb_strtoupperDizgeyi büyük harfli yapar

Açıklama

string mb_strtoupper ( string $dizge [, string $kodlama = mb_internal_encoding() ] )

dizge içindeki 'abecesel' karakterlerin tamamını büyük harfe çevirir.

DeÄŸiÅŸtirgeler

dizge

Büyük harfli yapılacak dizge.

kodlama

kodlama değiştirgesinde karakter kodlaması belirtilir. Belirtilmediği takdirde dahili karakter kodlaması kullanılır.

Dönen Değerler

İçindeki 'abecesel' karakterlerin tamamı büyük harfe çevrilmiş olarak dizge.

Evrenkod

Evrenkodun özellikleri hakkında daha fazla bilgi edinmek için » http://www.unicode.org/unicode/reports/tr21/ adresine bakınız.

strtoupper() işlevinin tersine, 'abecesel' durum Evrenkodlu karakter özelliklerinden saptanır. Bu bakımdan bu işlevin davranışı yerel ayarlarından etkilenmez ve 'abecesel' özelliğe sahip her karakter (ü gibi) dönüştürülür.

Örnekler

Örnek 1 - mb_strtoupper() örneği

<?php
$str 
"Åžahizar'ın Ã§ok sevdiÄŸi küçük bir KUZUSU var.";
$str mb_strtoupper($str);
echo 
$str// ÅžAHIZAR'IN Ã‡OK SEVDIÄžI KÜÇÜK BIR KUZUSU VAR.  basar
           // PHP 5.3.0alpha3-dev (cli) (built: Nov 13 2008 18:20:00)
           // (ÅžAHİZAR'IN Ã‡OK SEVDİĞİ KÜÇÜK BİR KUZUSU VAR. basması gerekirdi.)
?>

Ayrıca Bakınız



mb_strwidth> <mb_strtolower
[edit] Last updated: Fri, 23 Mar 2012
 
add a note add a note User Contributed Notes mb_strtoupper
tomasz at trejderowski dot pl 29-Dec-2010 05:01
Please note, that in many cases, forcing UTF-8 encoding with second parameter is necessary. PHP documentation states that if this parameter is omitted, the internal character encoding value will be used. But in my case it turned out to be not true. Even though I have all my pages encoded in UTF-8 and my DB connection set to force UTF-8 encoding, comparison of user-input and DB-retrieved data, which is using mb_strtoupper, did not work until I forced encoding.
rai at philscan dot com 10-Aug-2009 12:33
for some reason, there are instances that special characters do show when you use this function, but when you revisit or refresh the page the special characters doesn't appear anymore, ie GRSARMERING is being displayed instead of GRÆSARMERING. You have to provide the second parameter which charset you are using to override the value. in my case it's iso-8859-1, so the function would now look like

mb_strtoupper($foo, 'iso-8859-1')
oriol dot torras at mobifriends dot com 24-Nov-2008 06:13
UTF-8 does not support html entities
&oacute; is ó in UTF-8
cyril dot legret at free dot no-spam dot fr 25-Feb-2005 01:40
Be careful with htmlentities ...
<?
echo mb_strtoupper("L'&eacute;léphant", "utf-8");
?>
output : L'&EACUTE;LÉPHANT

 
show source | credits | stats | sitemap | contact | advertising | mirror sites