i want to make a spin function to spin a string but i fased problem for doing it. I allready know how to sping words in string like changing {hi|hello} but what i want is different it is ranom spin in a string
$spin_words=array('Word1','Word2','Word3');
$text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.";
so i want to add the words in random like
Lorem Ipsum is simply [Word1] dummy text of the printing and typesetting industry.
or
Lorem Ipsum is simply dummy text of the printing [Word2] and typesetting industry.
or
Lorem Ipsum is simply dummy text of the printing and typesetting industry [Word3].
so any help guys
regards