title: stripping all http, www, https, ftp, leaving just the domain name
body: <p>i would like to have one combined php statement that will strip domain names my clients will enter so its like cnn.com, not <a href="http://cnn.com" rel="nofollow">http://cnn.com</a>, or www.cnn.com, or ftp.cnn.com or anything else common to domain urls. is it possible, from Stackoverflow i have this code so far </p>
  
  <pre><code>$valueStrip = explode("//",$value);
  $value = $valueStrip[1];
  </code></pre>
  
  <p>that should handle http:// https:// ftp:// but what about the rest and how to get it all in one statement. example please if its possible </p>