validator 验证 integer 问题
为什么源码中使用的是filter_var($value, FILTER_VALIDATE_INT)
来验证是否是integer,而不是用is_int呢,我传1
和'1'
都能验证通过,显然不是我想要的
推荐文章: