PHP lcfirst()函数定义与用法
时间:2021-06-26 08:47:10|栏目:PHP代码|点击: 次
PHP lcfirst() 函数
实例
把 "Hello" 的首字符转换为小写。:
<?php
echo lcfirst("Hello world!");
?>
定义和用法
lcfirst()函数把字符串中的首字符转换为小写。
相关函数:
- ucfirst() - 把字符串中的首字符转换为大写。
- ucwords() - 把字符串中每个单词的首字符转换为大写。
- strtoupper() - 把字符串转换为大写。
- strtolower() - 把字符串转换为小写。
语法
lcfirst( _string_ )


总结
上一篇:PHP7常量数组用法分析
栏 目:PHP代码
下一篇:tp5(thinkPHP5)框架连接数据库的方法示例
本文标题:PHP lcfirst()函数定义与用法
本文地址:http://www.codeinn.net/misctech/148423.html






