-2
How to use the function preg_match()
to remove special characters and allow .
, @
and accents?
If it is not possible to do with this function, what other can I use to have the same result?
Example:
$exemplo1=preg_match("[expressão]" , '/*João Paulo/');
$exemplo2 = preg_match("[expressão]" , 'joao2@hotmail.com-+');
$echo = $exemplo1 // João Paulo
echo = $exemplo2 // joao2@hotmail.com
Could add an example of expected input and output?
– Costamilam
updated the question of a look pf
– Reignomo