|
Plug-in PHP: 100 Power Solutions By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596) Home | About | Buy It |
Chapter 3: Plug-in 10 - Shorten TextSometime, when you want to display the URL on a webpage it can be so long it looks untidy and messes up your layout. Of course you can come up with suitable text for a hyperlink instead showing the URL, but what about when a user posts a web address to your website?
This plug-in has a simple solution because it shortens any long URLS (or other strings) by removing the middle and only keeping the two ends. |