ucfirst php

PHP ucfirst()函数 (PHP ucfirst() function)

ucfirst() function is a string function, it is used to convert first character to uppercase. It accepts string and returns string with first uppercase character.

ucfirst()函数是一个字符串函数,用于将第一个字符转换为大写。 它接受字符串,并返回第一个大写字符的字符串。

Syntax:

句法:

    ucfirst(string);

Example:

例:

    Input: "this is MY computer!"
Output: "This is MY computer!"

PHP code:

PHP代码:

<?PHP
$str = "this is MY computer!";
echo (ucfirst($str));
?>

Output

输出量

This is MY computer!

翻译自: https://www.includehelp.com/php/ucfirst-function-with-example.aspx

ucfirst php

ucfirst php_PHP ucfirst()函数与示例相关推荐

  1. php指定长度 分割整形,php指定长度分割字符串str_split函数用法示例

    本文实例讲述了php指定长度分割字符串str_split函数用法.分享给大家供大家参考,具体如下: 示例1:$str = 'abcdefgh'; $arr = str_split($str,2); 运 ...

  2. getdate函数_PHP getdate()函数与示例

    getdate函数 PHP getdate()函数 (PHP getdate() function) getdate() function is used to get the local date/ ...

  3. 安卓log.e函数打印示例_log1p()函数以及C ++中的示例

    安卓log.e函数打印示例 C ++ log1p()函数 (C++ log1p() function) log1p() function is a library function of cmath ...

  4. gettimeofday_PHP gettimeofday()函数与示例

    gettimeofday PHP gettimeofday()函数 (PHP gettimeofday() function) gettimeofday() function is used to g ...

  5. dir函数_PHP dir()函数与示例

    dir函数 PHP dir()函数 (PHP dir() function) dir() function is an instance of the directory class, it is u ...

  6. PHP rewinddir()函数与示例

    PHP rewinddir()函数 (PHP rewinddir() function) rewinddir() function is used to rewind/reset the direct ...

  7. stl swap函数_C ++ STL | vector :: swap()函数与示例

    stl swap函数 C ++ STL vector :: swap()函数 (C++ STL vector::swap() function) vector::swap() function is ...

  8. C#回调函数应用示例,形象比喻方法助理解

    C#回调函数应用示例,形象比喻方法助理解,整理了一个简单的例子来说明回调函数的用法: namespace CallBackFunction {     class Program     {      ...

  9. php解escape,PHP下escape解码函数用法示例

    这篇文章主要为大家详细介绍了PHP下escape解码函数用法示例,具有一定的参考价值,可以用来参考一下. 感兴趣的小伙伴,下面一起跟随512笔记的小编小韵来看看吧!GB2312编码: 代码如下: fu ...

  10. 普通的PHP上传到云函数,php封装上传函数代码示例

    php封装上传函数代码示例 发布时间:2020-05-14 17:16:12 来源:亿速云 阅读:184 作者:Leah 今天小编就为大家带来一篇有关php封装上传函数的文章.小编觉得挺实用的,为此分 ...

最新文章

  1. layui 日历选中日期,自动填充
  2. React路上遇到的Bug
  3. 2场直播丨从零快速搭建一整套监控体系、Oracle Database Server经典体系结构
  4. mysql左连接_面试考MySQL性能优化,一个问题就干趴下了!
  5. 【ElasticSearch】Es 源码之 PersistentTasksExecutorRegistry 源码解读
  6. idea打开linux命令行,在IDEA中使用Linux命令的操作方法
  7. 黑客用上机器学习你慌不慌?这 7 种窃取数据的新手段快认识一下
  8. 4006.Cacti集监控IBM刀片服务器温度和风扇运行状态
  9. DF1协议的官网下载
  10. 在线旅游发展趋势分析
  11. 拆素数【找规律,数学】
  12. jQuery常用插件
  13. case when 嵌套
  14. Linux多线程服务端编程学习(四)finger服务的实现
  15. 供应链管理最重要的竟然是它
  16. 输入目录路径以及名字,能够将该路径下所有文件的属性打印出来,类似ls -l
  17. Python PyQt4 文字朗读演示代码
  18. 基于arduino的5路循迹小车(1)
  19. LDAP-openldap服务部署和测试(YUM安装)
  20. baidupcsgo安卓_百度网盘资源下载器下载

热门文章

  1. 怎么接微信公众号人工服务器,怎么设置微信公众号接入人工客服?
  2. 用Java实现圆锥的体积公式_圆锥的体积公式及其推导
  3. globk命令帮助信息
  4. threejs开启对数深度缓存区时、着色器深度混乱
  5. 【Python】利用tkinter开发AI对战井字棋游戏
  6. 如何在阿里云上购买域名并备案Iot studio
  7. VS2013_CodeLens
  8. MSXML应用总结 开发篇(上)
  9. 「HNOI 2009」图的同构记数
  10. 奇怪的问题:Windows 11 22H2任务管理器颠倒显示GPU使用率