/ Published in: PHP

If you work with Twitter, you probably use a url shortener such as tinyurl.com or bit.ly to share/post your favorite blog posts or important messages with links on the network. This snippet take your url as a parameter and returns a short url.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function getShortUrl($url){ } ?>
URL: http://www.apphp.com/index.php?snippet=php-get-short-urls-for-twitter
Comments
