检查数据是否是货币格式

// 函数名:CheckMoney($C_Money)
// 作 用:检查数据是否是99999.99格式
// 参 数:$C_Money(待检测的数字)
// 返回值:布尔值
// 备 注:无
//———————————————————————————–
——-
function CheckMoney($C_Money)
{
if (!ereg(“^[0-9][.][0-9]$”, $C_Money)) return false;
return true;
}
//———————————————————————————–
——-

Popularity: 66%

No Responses to “检查数据是否是货币格式”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>