I could do this though I'm wondering if there are any other options?
Code: Select all
$new_string = preg_replace("/[^a-zA-Z0-9]/", "", $string);Moderator: General Moderators
Code: Select all
$new_string = preg_replace("/[^a-zA-Z0-9]/", "", $string);