本文整理汇总了PHP中test_int函数的典型用法代码示例。如果您正苦于以下问题:PHP test_int函数的具体用法?PHP test_int怎么用?PHP test_int使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了test_int函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
return '<font color="green">√</font>';
break;
default:
return $result;
break;
}
}
//保留服务器性能测试结果
$valInt = isset($_POST['pInt']) ? $_POST['pInt'] : "未测试";
$valFloat = isset($_POST['pFloat']) ? $_POST['pFloat'] : "未测试";
$valIo = isset($_POST['pIo']) ? $_POST['pIo'] : "未测试";
if ($_GET['act'] == "phpinfo") {
phpinfo();
exit;
} elseif ($_POST['act'] == "整型测试") {
$valInt = test_int();
} elseif ($_POST['act'] == "浮点测试") {
$valFloat = test_float();
} elseif ($_POST['act'] == "IO测试") {
$valIo = test_io();
} elseif ($_POST['act'] == "开始测试") {
?>
<script language="javascript" type="text/javascript">
var acd1;
acd1 = new Date();
acd1ok=acd1.getTime();
</script>
<?php
for ($i = 1; $i <= 100000; $i++) {
echo "<!--567890#########0#########0#########0#########0#########0#########0#########0#########012345-->";
}
示例2: test_hh_bool
test_hh_bool(true);
test_hh_resource(STDIN);
test_hh_arraykey('herp');
test_hh_arraykey(123);
test_hh_num(123);
test_hh_num(1.23);
test_string(new string());
test_int(new int());
test_float(new float());
test_bool(new bool());
test_resource(new resource());
test_arraykey(new arraykey());
test_num(new num());
print "--- INCORRECT USAGE ---\n";
test_hh_string(new string());
test_hh_int(new int());
test_hh_float(new float());
test_hh_bool(new bool());
test_hh_resource(new resource());
test_hh_arraykey(new arraykey());
test_hh_arraykey(1.23);
test_hh_num(new num());
test_hh_num('123');
test_string('123');
test_int(123);
test_float(1.23);
test_bool(true);
test_resource(STDIN);
test_arraykey('herp');
test_arraykey(123);
test_num(1.23);
示例3: bom
case "bom":
bom();
exit;
default:
break;
}
//表单处理
if (isset($_POST['Buginfo']) and $_POST['act'] == "提交") {
//Bug提交!
$message = $message . "\n\n 来自:" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'];
$to = "307292967@qq.com";
$subject = "浩哥你多大了?";
$jg = @mail($to, $subject, $message);
$jgprint = true == $jg ? "<font color=\"green\">上报成功!谢谢你!</font>" : "<font color=\"red\">上报失败!写信给我吧:307292967@qq.com</font>";
} elseif ($_POST['action'] == "整数运算") {
$ts_int = test_int();
} elseif ($_POST['action'] == "浮点运算") {
$ts_float = test_float();
} elseif ($_POST['action'] == "IO测试") {
$ts_io = test_io();
} elseif ($_POST['action'] == "开始测试") {
?>
<script language="javascript" type="text/javascript">
var acd1;
acd1 = new Date();
acd1ok=acd1.getTime();
</script>
<?php
for ($i = 1; $i <= 1000; $i++) {
echo "<!--567890#########0#########0#########0#########0#########0#########0#########0#########012345-->";
}
示例4: test_bool
test_bool(true);
test_resource(STDIN);
test_arraykey('herp');
test_arraykey(123);
test_num(123);
test_num(1.23);
print "--- INCORRECT USAGE ---\n";
test_string(new string());
test_int(new int());
test_float(new float());
test_bool(new bool());
test_resource(new resource());
test_arraykey(new arraykey());
test_num(new num());
print "--- INCORRECT USAGE ---\n";
test_hh_string(new string());
test_hh_int(new int());
test_hh_float(new float());
test_hh_bool(new bool());
test_hh_resource(new resource());
test_hh_arraykey(new arraykey());
test_hh_arraykey(1.23);
test_hh_num(new num());
test_hh_num('123');
test_string(new string());
test_int(new int());
test_float(new float());
test_bool(new bool());
test_resource(new resource());
test_arraykey(new arraykey());
test_num(new num());