Home > Article > Backend Development > PHP implements the replacement of multiple strings into the same code
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. |