Iโve made a little php class for messing round with words, you can see a demo of some of the functions here: Wordplay Demo ๐.
You can download the class here: jedidiah.eu/wordplay.zip ๐
Iโm a designer not a programmer so I make no guaranties about the efficiency of the code, and if you have any suggestions or improvements please let me know.
Iโm setting this code free under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License ๐.