karimali831 Posted May 16, 2010 Share Posted May 16, 2010 where can I find the script to convert text to alphanumeric? Example, $name = 'The -Name-'; function (preg_replace...) return $name output: TheName Thanks for help Link to comment https://forums.phpfreaks.com/topic/201986-convert-to-alphanumeric/ Share on other sites More sharing options...
litebearer Posted May 17, 2010 Share Posted May 17, 2010 $new_string = preg_replace(“/[^a-zA-Z0-9\s]/”, “”, $string); Link to comment https://forums.phpfreaks.com/topic/201986-convert-to-alphanumeric/#findComment-1059265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.