一个字符串如下所示:
$string = 'Super this is a test this is a test';
输出应该是:
Super
我正在尝试从字符串中完全删除重复的单词。我发现的是:
echo implode(' ',array_unique(explode(' ', $string)));但这是输出:
Super this is a test
感谢您提供一个简单的方法来做到这一点。
互换的青春
慕丝7291255
慕婉清6462132
随时随地看视频慕课网APP