Codex tools: Log in
Shortens URLs. Removes http://, www., and truncates the remaining URL to 35 characters, including '...' if the URL is longer than that.
WordPress uses it to display URLs on the link management screen.
<?php echo url_shorten('http://www.example.com/an/article/with/a/very/long/url'); ?>
This would print:
url_shorten() is located in