php將字符串轉(zhuǎn)換成小寫的方法是:可以通過strtolower()函數(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)換為小寫的字符串。
代碼實現(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");?>
阿里ecs云服務器進入怎么樣做網(wǎng)站優(yōu)化我想問下為什么這個域名打不開了云服務器怎么管理數(shù)據(jù)庫香港主機必備功能 你的主機差哪個?.cn的域名必須要備案么玩客云網(wǎng)站服務器繁忙云計算開發(fā)學習筆記:Python3三引號和f-string格式化字符串