最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP lcfirst()函数定义与用法
时间:2026-06-01 13:30:01 编辑:袖梨 来源:一聚教程网
今天小编就为大家分享一篇关于PHP lcfirst()函数定义与用法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
PHP lcfirst() 函数
实例
把 "Hello" 的首字符转换为小写。:
<?php echo lcfirst("Hello world!"); ?>定义和用法
lcfirst()函数把字符串中的首字符转换为小写。
相关函数:
ucfirst() - 把字符串中的首字符转换为大写。ucwords() - 把字符串中每个单词的首字符转换为大写。strtoupper() - 把字符串转换为大写。strtolower() - 把字符串转换为小写。语法
lcfirst( _string_ )


总结