Dbmier LED Artcraft Tracing Light Pad Light Box Light Board Light Table- A4

PHP Tech Blog

Dbmier LED Artcraft Tracing Light Pad Light Box Light Board Light Table- A4

留言簿(5)

Links

My Favorites

推荐技术文章

阅读排行榜

评论排行榜

php 怎么判断字符串是不是数字?

Q:
如果我输入.000, 025.00,000.25都是不对的 

A:
<?php
$num="000, 025.00,000.25";
if(preg_match("/[^\d-., ]/",$num))
{
echo "不是数字: ".$num;
}
else
{
echo "是数字: ".$num;
}
?>

posted on 2009-12-11 17:01 haix 阅读(1472) 评论(0)  编辑 收藏 引用 网摘 所属分类: PHP


只有注册用户登录后才能发表评论。
网站导航:
Dbmier LED Artcraft Tracing Light Pad Light Box Light Board Light Table- A4