Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
$str = 'php.cn';
echo strrev($str);
//输出结果:nc.php
$str = 'php.cn';
echo ucfirst($str);
//输出结果:Php.cn
$str = 'php.cn';
echo chunk_split($str,1,' ');
//输出结果:p h p . c n
echo strchr("i study php in php.cn!","in");
//输出结果:in php.cn!
echo strchr("i study php in php.cn!","in",true);
//输出结果:i study php
$str = 'php.cn';
echo strtoupper($str);
//输出结果:PHP.CN
echo strtr('Hello wstan','stan','orld');
//输出结果:Hello world
$arr = array("Hello" => "Hello", "world" => "php.cn");
echo strtr("Hello world",$arr);
//输出结果:Hello php.cn
$strs = 'hello world welcome to php.cn';
echo ucwords($strs);
//输出结果:Hello World Welcome To Php.cn
$str = "Hello\nWorld";
echo nl2br($str,false);
//输出结果:Hello
World