原文作者: xingguang
原文链接:https://www.tiance.club/post/934001781.html
$data['recharge_price']=str_replace('.00','',$data['recharge_price']);
if(preg_match("/^[1-9][0-9]*$/" ,$data['recharge_price'])) {
echo "是正整数";
}else{
echo "不是正整数";
}