Stringlerde büyük-küçük harf

Listeye Dön

Açıklama

Stringlerde büyük-küçük harf dönüştürme işlemleri strtoupper() , strtolower(), ucfirst(), ve ucwords() fonksiyonları ile yapılmaktadır.
PHP SOURCE CODE
<?
setlocale (LC_CTYPE, "");

$cumle = "yeni ipucu siteniz";

$cumle = strtoupper ($cumle);
//  YENI IPUCU SITENIZ

$cumle = strtolower ($cumle);
//   yeni ipucu siteniz

$cumle = ucfirst ($cumle);
//   Yeni ipucu siteniz

$cumle = ucwords ($cumle);
//   Yeni Ipucu Siteniz
?>
Çıktı
Kodu çalıştırmak için ▶ butonuna tıklayın.

Detaylı İnceleme

İyi çalışmalar.