How to remove the special characters in title?
May 17th, 2008 — admin
$hotel=" How to study; PHP? ";
$foldername = stripslashes ($hotel);
//This erase white-spaces on the beginning and the end in each line of a string:
$foldername = preg_replace('~^(\s*)(.*?)(\s*)$~m', "\\2", $foldername);
//erases all NON-alfanumerics
$foldername = ereg_replace("[^[:alnum:] ]","",$foldername); Read the rest of this entry »