protected function isPositiveInteger($value,$rule='',$data='',$field=''){ if (is_numeric($value) && is_int($value + 0) && ($value + 0) > 0) { return true; } else { return false; } }
正整数validate验证
最新推荐文章于 2024-06-24 10:22:04 发布
protected function isPositiveInteger($value,$rule='',$data='',$field=''){ if (is_numeric($value) && is_int($value + 0) && ($value + 0) > 0) { return true; } else { return false; } }