Quote:
Today at 01:10 AM limey said this in Post #15
And to create more words we have to create more functions with:
($text1)
($text2)
($text3)
etc. right?
I'm pretty sure I'm right; just confirming . Very cool btw!
|
No. You can actually do all of the replacements in the same function. If you look at the code, you can see that I replaced two different words: Netflix and netflix. You can do yours in the same way if you understand how the code works.
You would add code something along the lines of:
Code:
$affiliate_code2="Some other replacement string";
$text = str_replace("word2",$affiliate_code2,$text);