Posts by Felipe Francisco • 165 points
1 post
-
6
votes7
answers59028
viewsA: Refactoring function to remove punctuation, spaces and special characters
I think this would be the best and simplest solution to your problem: $valor = "João dos Santos Videira" $valor = str_replace(" ","_",preg_replace("/&([a-z])[a-z]+;/i", "$1",…