replace a random word of a string with a random replacement
- by tpickett
I am developing a script that takes an article, searches the article for a "keyword" and then randomly replaces that keyword with an anchor link.
I have the script working as it should, however I need to be able to have an array of "replacements" for the function to loop through and insert at the random location.
So the first random position…