PHP Spintax Function

UPDATE: Please use the new improved version PHP Spintax Class HERE

Internet Marketers often use something they call Spintax. Spintax lets you wrap text in syntax like this{option 1|option 2|option 3} and when processed, it will randomly select one of the text in between the Pipes to show a random text. This function also allows you to nest Spintax inside of other Spintax blocks.

The code is pretty straight forward so I will not go over it, if you have any questions leave a comment