Complete PHP Filter Reference
The FILTER_SANITIZE_NUMBER_INT filter removes all illegal characters from a number.
This filter allows digits and . + -
The output of the code will be:
Complete PHP Filter Reference
Your message has been sent to W3Schools.