ITPUB??ì3
ITPUB论坛 » WEB程序开发 » is_int( )

新一届的微软MVP评选已经开始,欢迎各位推荐!

标题: is_int( )
离线 liyihongcug
高级会员



精华贴数 1
个人空间 0
技术积分 9579 (124)
社区积分 1043 (930)
注册日期 2004-7-15
论坛徽章:8
会员2007贡献徽章铁扇公主授权会员2008年新春纪念徽章开发板块每日发贴之星数据库板块每日发贴之星
开发板块每日发贴之星ITPUB新首页上线纪念徽章    

发表于 2008-2-15 14:12 
is_int( )

is_numeric --- 判断变数是否为数字或数字的字串  

--------------------------------------------------------------------------------

范例或相关连结 || 作者: || 时间:2003-06-15 23:39:49 ||最后更新:2003-06-15 23:39:49|| 列印 || 修改
[h3]is_numeric[/h3]

(PHP4 >= 4.0RC1)

is_numeric --- 判断变数是否为数字或数字的字串

语法 : int is_numeric (mixed var)

说明 :

若参数var为数字或数字的字串则传回true,否则传回false。






参考 : is_bool( ) is_double( ) is_float( ) is_int( ) is_real( ) is_string( ) is_object( ) is_array( )

is_integer( )


只看该作者    顶部
离线 liyihongcug
高级会员



精华贴数 1
个人空间 0
技术积分 9579 (124)
社区积分 1043 (930)
注册日期 2004-7-15
论坛徽章:8
会员2007贡献徽章铁扇公主授权会员2008年新春纪念徽章开发板块每日发贴之星数据库板块每日发贴之星
开发板块每日发贴之星ITPUB新首页上线纪念徽章    

发表于 2008-2-15 14:13 
$part=400;
$page_sql=$nrrcd/$part;

if(is_int($page_sql))
{
        //die("mmmmllll";
        $page_sql=$page_sql;
}
else
{
        //die("llll";
        $page_sql=getint($page_sql);
        $page_sql=$page_sql+1;
}if($nrrcd>400){
$pn=2;
$rn=$page_sql;
echo " you have only finished the 1"." of "."$rn"."step! So you have to go next....  <br/>";
?>
<form method="post" action="import1.php">
                <input type="hidden" name="id" value="<?=$hid?>">
                <input type="hidden" name="src" value="<?=$src?>">
                <input type="hidden" name="pageN" value="<?=$pn?>">
                <input type="hidden" name="recordN" value="<?=$rn?>">
                <input type="submit" value="continue Import &gt;&gt;"/>
        </form>
        <?}
else
{
        echo 'Congratuation!import data success <br/>if there is any error message, please contact to88</a><br/><br/><a href="./">return</a>';
}


只看该作者    顶部
 
    

相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问