PHP says “Nooo” to my integer

Another eye-opener from PHP is the unexpected behaviour of integer filters. Here is a test case class checking “01” and “10” whether they are integers or not.

Refer to: http://php.net/manual/en/filter.filters.validate.php