Posts by Renato • 11 points
2 posts
-
-1
votes7
answers59028
viewsA: Refactoring function to remove punctuation, spaces and special characters
public static function removerCaracteresEspeciaiss($str){ $str_saida = ""; for($i=0; $i<strlen($str); $i++){ $num_asc = ord($str[$i]); if( ($num_asc>=65…
-
-3
votes3
answers1750
viewsA: Traverse string with PHP
public static function removerCaracteresEspeciaiss($str){ $str_saida = ""; for($i=0; $i<strlen($str); $i++){ $num_asc = ord($str[$i]); if( ($num_asc>=65…