Problem Description Eddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Eddy's English teacher be extremely disc…
$str = "Mary Had A Little Lamb and She LOVED It So"; string strtolower ( string $str )— 将字符串转化为小写(所有字符) // 打印 mary had a little lamb and she loved it so 返回值:返回转换后的字符串 string strtoupper ( string $string )— 将字符串转化为大写(所有字符) 打印 MARY HAD A LITTLE LAM…
<?php $str='PHP is a very good programming language.'; //定义一个字符串 echo "未经处理的字符串:<br />{$str}"; //分别使用各个函数处理字符串并输出处理后的结果 $str=strtolower($str); echo "<br />使用strtolower函数将字符串转换为小写:<br />{$str}"; $str=ucfirst($str);…