ltrim的思考

说明
string ltrim( string $str[, string $character_mask] )

  删除字符串开头的空白字符(或其他字符)

案例1

$test = " deleteeee  e ttreee明日科技";

echo ltrim($test, 'delt');

结果:

deleteeee e ttreee明日科技

案例2

$test = " deleteeee  e ttreee明日科技";

echo ltrim($test, 'delt ');

结果:

deleteeee e ttreee明日科技

案例3

$test = " deleteeee  e ttreee明日科技";

echo ltrim($test, ' delt');

结果:

reee明日科技