摘要:
<?phpheader("Content-type:text/html;charset=gb2312");//判断是否为素数的函数1function Is_zs($n){ for($i=2;$i<$n;$i++){if($n%$i==0){return false;}}return true;}// 阅读全文
posted @ 2017-10-13 21:52
苏晨军
阅读(164)
评论(0)
推荐(0)
摘要:
对于新手来说,优化代码的习惯十分重要, 测试运行的时间,从而得出最好的一个 <?php $t1=microtime(true); //获取程序1,开始的时间 程序1(代码。。。) $t2=microtime(true); //获取程序1,结束的时间 $t3=microtime(true); //获取 阅读全文
posted @ 2017-10-13 21:44
苏晨军
阅读(946)
评论(0)
推荐(0)
浙公网安备 33010602011771号