php將字符串轉(zhuǎn)換成小寫的方法是:可以通過strtolower()函數(shù)來實(shí)現(xiàn)。該函數(shù)可以把字符串轉(zhuǎn)換成小寫。函數(shù)語法:【strtolower(string)】,具體使用方法如【strtolower($string);】。
(推薦教程:php教程)
函數(shù)介紹:
strtolower() 函數(shù)把字符串轉(zhuǎn)換為小寫。
語法:
strtolower(string)參數(shù)介紹:
string 必需參數(shù)。規(guī)定要轉(zhuǎn)換的字符串。
返回值:
返回轉(zhuǎn)換為小寫的字符串。
代碼實(shí)現(xiàn):
<?php$string = "learn php string functions at jb51.net";$lower = strtolower($string);$upper = strtoupper($string);print("$lower\\\\n");print("$upper\\\\n");print("\\\\n");?>