if($result[0]){ $url = str_replace('http://', '',$website); echo str_replace('from '.$url, '', $result[0]); }else{ echo 'None';