A string look like this:
$string = 'Super this is a test this is a test';
Output should be:
Super
I am trying to remove duplicate words completly from a string. What I have found is:
echo implode(' ',array_unique(explode(' ', $string)));
but here is the output:
Super this is a test
Thank you for a easy way to do this.