原文作者: 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 "是正整數(shù)";
}else{
echo "不是正整數(shù)";
}