PHP ucfirst() 函数

定义和用法

ucfirst() 函数把字符串中的首字符转换为大写。

语法

ucfirst(string)
参数 描述
string 必需。规定要转换的字符串。

例子

<?php
echo ucfirst("hello world");
?>

输出:

Hello world
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南