码迷,mamicode.com
首页 > 其他好文 > 详细

ucfirst() 函数

时间:2017-02-09 16:37:42      阅读:86      评论:0      收藏:0      [点我收藏+]

标签:ucfirst() 函数

定义和用法

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

语法

ucfirst(string)

参数解析

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

示例

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

输出

Hello world!

本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1896243

ucfirst() 函数

标签:ucfirst() 函数

原文地址:http://suyanzhu.blog.51cto.com/8050189/1896243

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!