批改老师:查无此人
批改状态:合格
老师批语:完成的不错,继续努力
1、strtolower()
$str = 'HELLO PHP'; echo strtolower($str); echo '<hr>'; $str = 'I LOVE PHP'; echo strtolower($str);
$str = 'ouyangke'; echo strtoupper($str); echo '<hr>'; $str = 'HuangRong'; echo strtoupper($str);
3、trim() ltrim() rtrim()
$str = ' ouyangke '; echo trim($str); echo '<hr>'; $str = ' HuangRong '; echo lrim($str); echo '<hr>'; $str = ' guojing '; echo rrim($str);
4、str_replace()
$str = 'wc kcf acbc'; echo str_replace('acbc','爱存不存',$str);
5、explode()
$str = 'ouyangke huangrong guojing'; $arr = explode(' ',$str);
6、md5()
$str = '123456'; echo md5($str);
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号