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-08-18 03:08:43 发布

protected function isPositiveInteger($value,$rule='',$data='',$field=''){ if (is_numeric($value) && is_int($value + 0) && ($value + 0) > 0) { return true; } else { return false; } }