PHP strtolower() 函数
PHP strtolower() 函数 实例 把所有字符转换为小写: <?php echo strtolower("Hello WORLD."); ?> 定义和用法 strtolower() 函数把字符串转换为小写。 注释: 该函数是二进制安全的。 相关函数: strtoupper() - 把字符串转换为大写 lcfirst() - 把字符串中的首字符转换为小写 ucfirst() - 把字符串中的首字符转换为大写 ucwords() - 把字符串中每个单词的首字符转换为大写 语法 strtolower( _string_ ) 参数 描述 _string_ 必需。规定要转换的字符串。 技术细节 返回值: 返回转换为小写的字符串。 PHP 版本: 4+
PHP strtolower() 函数
实例
把所有字符转换为小写:
<?php echo strtolower("Hello WORLD."); ?>
定义和用法
strtolower() 函数把字符串转换为小写。
注释: 该函数是二进制安全的。
相关函数:
- strtoupper() - 把字符串转换为大写
- lcfirst() - 把字符串中的首字符转换为小写
- ucfirst() - 把字符串中的首字符转换为大写
- ucwords() - 把字符串中每个单词的首字符转换为大写
语法
strtolower( _string_ )
| 参数 | 描述 |
|---|---|
| _string_ | 必需。规定要转换的字符串。 |
技术细节
| 返回值: | 返回转换为小写的字符串。 |
|---|---|
| PHP 版本: | 4+ |
交流与评论