PHP ltrim() 函数
例子
<?php $str = "Hello World!"; echo $str . "<br>"; echo ltrim($str,"Hello"); ?>
输出
Hello World!
World!
参考:
https://www.w3school.com.cn/php/func_string_ltrim.asp
例子
<?php $str = "Hello World!"; echo $str . "<br>"; echo ltrim($str,"Hello"); ?>
输出
Hello World!
World!
参考:
https://www.w3school.com.cn/php/func_string_ltrim.asp