예제 #1
0
 /**
  * This is a unicode aware replacement for ucfirst()
  *
  * @author Andrea Rossato <*****@*****.**>
  * @see    ucfirst()
  */
 static function utf8_ucfirst($str)
 {
     $fc = UTF8::utf8_substr($str, 0, 1);
     return UTF8::utf8_strtoupper($fc) . UTF8::utf8_substr($str, 1, UTF8::utf8_strlen($str));
 }