<?php $veri = 'fg3ıfgğ cufgğcfgğıfg6ı140fğ4ıuc f4526737&=(&=07'; $veri = preg_replace("@[^A-Za-z0-9\- ]+@i","",$veri); echo $veri; ?>