/ Published in: PHP
The special characters in the file name caused problem when the exported to iphone application.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function remove_special_char($string) { $ts = array("/\~/", "/\`/", "/\@/", "/\#/", "/\\$/", "/\%/", "/\^/", "/\&/", "/\*/", "/\(/", "/\)/", "/\:/", "/\:/", "/\;/", "/\</", "/\>/", "/\?/", "/\//", "/\,/", "/\{/", "/\}/", "/\[/", "/\]/", "/\|/", "/\+/", "/\=/", "/\!/", "/\'/" ); return $string; }