Okay so I want to replace 2 words with the same words in a different format but only once per occurance.
<?php
$text = "Word 1";
$newtext = str_replace(array('Word 1','Word 2'),'Word 1,Word 2',$text);
echo $newtext . "<br>\n";
?>
This outputs:
Word 1,Word 1,Word 2
I want it to instead out put like this:
Word 1,Word2