I recently needed to use a “spintax” PHP class for one of my projects. Rather than writing one from scratch, I looked up existing classes and found that Ronald Richardson had already written one that he had released as a free and open source script.

Unfortunately, it looks like his domain has expired, leaving his class unaccessible (I swiped it from Google Cache) so I am reposting the code here for others to use. Again, I had no part in developing this, it was written and released by Ronald Richardson, and is version 3.0 of his Spintax PHP class.

The following code goes in spintax.class.php

And to use it:

Enjoy!

Nathan Malone

P.S. I am currently able to accept a limited number of additional clients for my PHP Development services. Interested in discussing the possibility of my handling your project for you? Contact me!

Filed under: Uncategorized