(PHP 4, PHP 5, PHP 7)
ucfirst — 锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷母转锟斤拷为锟斤拷写
$str
) : string
锟斤拷 str
锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷址锟斤拷锟斤拷锟侥革拷锟阶拷锟轿拷锟叫达拷锟侥革拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷
注锟斤拷锟斤拷母锟侥讹拷锟斤拷取锟斤拷锟节碉拷前锟斤拷锟斤拷锟借定锟斤拷锟斤拷锟界,锟斤拷默锟较碉拷 "C" 锟斤拷锟斤拷锟街凤拷 umlaut-a锟斤拷?锟斤拷锟斤拷锟斤拷锟结被转锟斤拷锟斤拷
str
锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷
锟斤拷锟截斤拷锟斤拷址锟斤拷锟斤拷锟�
Example #1 ucfirst() 锟斤拷锟斤拷
<?php
$foo = 'hello world!';
$foo = ucfirst($foo); // Hello world!
$bar = 'HELLO WORLD!';
$bar = ucfirst($bar); // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>