批改状态:合格
老师批语:
//md5()两个参数//1.要计算的字符串//2.可选,true,md5返回16字符长度的2进制,默认false,返回32字符的16进制数echo md5('你好545'), '<br>';echo md5('你好545', true);
$str = "Hello world. (can you hear me?)";echo quotemeta($str);//返回 Hello world\. \(can you hear me\?\)
$shuffled = str_shuffle('abcdef');echo $shuffled;
echo strrev("Hello world!");
$text = 'This is a test';echo substr_count($text, 's'); // 3echo substr_count($text, 's', 5); // 2,从第6个开始计算,只有两个s
$foo = ucfirst('hello world!');echo $foo;
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号