To effectively remove special characters in a string, just use the preg_replace method.
$string - preg_replace ('[^a-zA-Z0-9]/s', '', $string);Il n'y a pas de questions bêtes

Photo de Christopher Gower sur Unsplash
To effectively remove special characters in a string, just use the preg_replace method.
$string - preg_replace ('[^a-zA-Z0-9]/s', '', $string);