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 Quote Link to comment 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.