-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.php
More file actions
20 lines (19 loc) · 751 Bytes
/
Copy pathutil.php
File metadata and controls
20 lines (19 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
function removerCaracter($string){
@$string = ereg_replace("[áàâãª]","a",$string);
@$string = ereg_replace("[ÁÀÂÃ]","A",$string);
@$string = ereg_replace("[éèê]","e",$string);
@$string = ereg_replace("[ÉÈÊ]","E",$string);
@$string = ereg_replace("[íì]","i",$string);
@$string = ereg_replace("[ÍÌ]","I",$string);
@$string = ereg_replace("[óòôõº]","o",$string);
@$string = ereg_replace("[ÓÒÔÕ]","O",$string);
@$string = ereg_replace("[úùû]","u",$string);
@$string = ereg_replace("[ÚÙÛ]","U",$string);
@$string = ereg_replace("ç","c",$string);
@$string = ereg_replace("Ç","C",$string);
@$string = ereg_replace("[][><}{)(:;,!?*%~^`&#@]","",$string);
@$string = ereg_replace(" ","_",$string);
return $string;
}
?>