Get current URL and trim with PHP
<p>Im getting the URL using:</p>

<pre><code>$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
</code></pre>

<p>This returns something like:</p>

<p><a href="http://me.domain.co.uk" rel="nofollow">http://me.domain.co.uk</a></p>

<p>How can I select 'me' only?</p>
