where: $name = preg_replace('/[.s+?,/"]/','_',$name); //change spaces.s+?,/" is a regular expression, indicating search. The empty symbol ? / " these five characters Others can be added by yourself. If you don’t understand something, you can refer to the content about regular expressions. |