Guest User

Untitled

a guest
Nov 13th, 2012
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1.     $FILE_NAME =  trim(str_replace(array("~", "`", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_", "=", "+", "[", "{", "]", "}", "\\", "|", ";", ":", "\"", "'", "&#8216;", "&#8217;", "&#8220;", "&#8221;", "&#8211;", "&#8212;", "—", "–", ",", "<", ".", ">", "/", "?"), "", strip_tags($FILE_NAME)));
  2.     $FILE_NAME =  = preg_replace('/\s+/', "-", $FILE_NAME);
Advertisement
Add Comment
Please, Sign In to add comment