Removing characters in php
Posted on 2007-03-26
I'm trying to echo out a list of domain names in php. I need to print the sld and tld part separately (example sld=mydomain tld=com), how do I strip the text before and after the period using php?
BTW: Some domains have a 2 letter country code, so I can't just strip the last 4 characters.