(推荐教程:php教程)
函数介绍:
strtolower() 函数把字符串转换为小写。
语法:
strtolower(string)
参数介绍:
string 必需参数。规定要转换的字符串。
返回值:
返回转换为小写的字符串。
代码实现:
<?php $string = "Learn PHP string functions at jb51.net"; $lower = strtolower($string); $upper = strtoupper($string); print("$lower "); print("$upper "); print(" "); ?>