标签:空白 结果 删除 test str tree 案例 code echo
说明
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明日科技
标签:空白 结果 删除 test str tree 案例 code echo
原文地址:https://www.cnblogs.com/jjxhp/p/11149205.html