Easy Tutorial
❮ Func Array Reduce Func Filesystem Fileperms ❯

PHP FILTER_SANITIZE_NUMBER_INT Filter



Definition and Usage

The FILTER_SANITIZE_NUMBER_INT filter removes all illegal characters from a number.

This filter allows all digits as well as . + -


Example

The output of the code is as follows:


❮ Func Array Reduce Func Filesystem Fileperms ❯