I'm trying to remove all non-numeric characters from my code, but FILTER_SANITIZE_NUMBER_INT
allows plus and minus signs.
How can I remove them using PHP that I can add to my code?
Here is my code.
$a = filter_var($a, FILTER_SANITIZE_NUMBER_INT);
See Question&Answers more detail:os