批改状态:合格
老师批语:
1、md5() 加密
// md5加密$password = '123456';echo md5($password);

2、strtoupper() 字符串转大写
// strtoupper 字符串转大写$str1 = 'abcdefghijklmn';echo strtoupper($str1).'<hr>';

3、strtolower() 字符串转小写
// strtolower 字符串转小写$str2 = 'JKDHJKSDHFJKSJDFH';echo strtolower($str2).'<hr>';

4、 str_ireplace() 替换指定字符串(不区分大小写)
// str_ireplace 替换指定字符串(不区分大小写)$str3 = '你好呀A省,a市,a区';echo str_ireplace("A","B",$str3).'<hr>';

5、str_word_count() 计算字符串的单词数量
// str_word_count 计算字符串的单词数量$str4 = '你好hello加点water';echo str_word_count($str4).'<hr>';

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号