正整数validate验证

来源:互联网 发布:淘宝网店供应商 编辑:程序博客网 时间:2024/06/06 02:01
protected function isPositiveInteger($value,$rule='',$data='',$field=''){    if (is_numeric($value) && is_int($value + 0) && ($value + 0) > 0) {        return true;    } else {        return false;    }}
原创粉丝点击