A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 8: Plug-in 60 - Replace SMS Talk

Sometime your users will use text speak in their posts, so called because it evolved through the use of texting messages on mobile phones. It's a more compact and less time consuming way of communicating that's also often used on Twitter too, due to its similar restriction on message length. But one thing it isn't is pretty. So if you would like to clean up posts a little before adding them to your site then this plug-in will do the trick.

The Figure shows the result of passing a string containing several text speak acronyms to the plug-in, which it suitably corrects.