How to check if page url has www in it or not with PHP?
<p>In PHP, how can I check if the current page has www in the url or not?</p>

<p>E.g if the user is on <a href="http://www.example.com/something" rel="nofollow">http://www.example.com/something</a> , how can I find that there's www in the URL, and on <a href="http://example.com/something" rel="nofollow">http://example.com/something</a> , www isn't in the url?</p>
