I have the 2 variables/strings below:
$article = ('Perfume is a mixture of fragrant word1 and aroma complexes, which can be applied to the human body, animals, word2, objects, and living spaces in order to give off a pleasant word3.');
$words = '{word1|word2|word3|word4|word5}';
What I need to do is to search $article for any words in $word and if found randomly replace the word found in $article with a random picked word from $word.
How can I do that please?