Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
//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'); // 3
echo substr_count($text, 's', 5); // 2,从第6个开始计算,只有两个s
$foo = ucfirst('hello world!');
echo $foo;