$money_reg = '/^[1-9]\d*|^[1-9]\d*.\d+[1-9]$/';
if(!preg_match($money_reg, $money)){
$this->ajaxError('金额格式错误');
}
转载于:https://www.cnblogs.com/phpwyl/p/10178060.html
$money_reg = '/^[1-9]\d*|^[1-9]\d*.\d+[1-9]$/';
if(!preg_match($money_reg, $money)){
$this->ajaxError('金额格式错误');
}
转载于:https://www.cnblogs.com/phpwyl/p/10178060.html