PHP strtolower() 函数

PHP 教程 · 2019-01-30 12:43:38

实例

把所有字符转换为小写:

<?php
echo strtolower("Hello WORLD.");
?>

定义和用法

strtolower() 函数把字符串转换为小写。

注释:该函数是二进制安全的。

相关函数:

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

语法


strtolower(string)


参数 描述
string 必需。规定要转换的字符串。

技术细节

返回值: 返回转换为小写的字符串。
PHP 版本: 4+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Google's PageRank and Beyond

Google's PageRank and Beyond

Amy N. Langville、Carl D. Meyer / Princeton University Press / 2006-7-23 / USD 57.50

Why doesn't your home page appear on the first page of search results, even when you query your own name? How do other web pages always appear at the top? What creates these powerful rankings? And how......一起来看看 《Google's PageRank and Beyond》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具