小编Die*_*que的帖子

如何取出线中的针

如何删除字符串中的“-” ?

$text  = 'lorem ipsum - dolor sit amet!';
$lorem = strstr($text, '-');

echo $lorem;
Run Code Online (Sandbox Code Playgroud)

返回:

- 多洛坐阿梅特!

我需要这个:

多洛坐阿梅特!

php string strstr

1
推荐指数
1
解决办法
775
查看次数

标签 统计

php ×1

string ×1

strstr ×1