$gelenveri="http://www.burtinet.com/"; $replace_data=array('http://', 'www.'); $replace=array('', ''); $replace=str_replace($replace_data,$replace,$gelenveri); echo $replace; //"burtinet.com"