PHP字符串操作-trimについて

来源:互联网 发布:鹰视眼无线监控软件 编辑:程序博客网 时间:2024/06/06 18:41

1:trim、ltrim、rtrim。去空格,这我就不说了

<?php    $str=" xxxxxx:xxxxxxxx:xxxxxxx ";    echo trim($str);    echo trim($str," xxxxxx ");?>
xxxxxx:xxxxxxxx:xxxxxxx:xxxxxxxx:

0 0