如何删除字符串中的“-” ?
$text = 'lorem ipsum - dolor sit amet!'; $lorem = strstr($text, '-'); echo $lorem;
返回:
- 多洛坐阿梅特!
我需要这个:
多洛坐阿梅特!
php string strstr
php ×1
string ×1
strstr ×1