Filter Sanitise

Hello
When I call filter_var() with FILTER_SANITISE_ _INT it return

  • ( filter_var() expects parameter 2 to be integer
  • Use of undefined constant: FILTER_SANITISE_NUMBER_INT

you are not spelling it correctly and php doesn’t offer international or British English variants.
https://www.php.net/manual/en/filter.filters.sanitize.php

https://grammarist.com/spelling/sanitise-sanitize/

FILTER_SANITIZE_NUMBER_INT with an example:
https://www.w3schools.com/php/filter_sanitize_number_int.asp

edit: I’m sorry, i forgot my manners. Hello and Welcome to PHPHelp :slight_smile:

Thank you :blush: Very much

Sponsor our Newsletter | Privacy Policy | Terms of Service