1
I’m using the str_replace
of php to leave a phone without the mask. I’m doing it this way, but wanted to know if there is another function that makes it more objective.
$fone = str_replace("(", "", $_POST["fone"]);
$fone2 = str_replace(")", "", $fone);
$fone3 = str_replace("-", "", $fone2);