close


[php]ucfirst — 將字符串的首字母轉換為大寫


官方範例
<?php
$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!


$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>

arrow
arrow
    全站熱搜

    stockwfj3 發表在 痞客邦 留言(0) 人氣()