网络编程
位置:首页>> 网络编程>> php编程>> PHP lcfirst()函数定义与用法

PHP lcfirst()函数定义与用法

作者:php参考手册  发布时间:2023-06-05 01:25:20 

标签:php,lcfirst(),函数

PHP lcfirst() 函数

实例

把 "Hello" 的首字符转换为小写。:


<?php
echo lcfirst("Hello world!");
?>

定义和用法

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

相关函数:

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

  • ucwords() - 把字符串中每个单词的首字符转换为大写。

  • strtoupper() - 把字符串转换为大写。

  • strtolower() - 把字符串转换为小写。

语法


lcfirst( _string_ )

PHP lcfirst()函数定义与用法

PHP lcfirst()函数定义与用法

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com