1 2 3 4
<?php $url = "http://www.yelp.com/biz/my-business-name"; echo preg_replace('~^www.~', '', parse_url($url, PHP_URL_HOST));
1
yelp.com