I found a very handy thing on the Internet, but it says that such characters as ",.?\" Cannot be entered as they are character attributes. How to write a code so that it would ignore (not delete) all the letters of the alphabet, numbers and symbols ",./?!" ?
What is:
$name = preg_replace("/[^а-яa-zA-ZА-Я0-9\s]+/u","",$string);