摘要:
1. foreach中unset引用元素<?php$array = array(1,2,3);foreach($array as &$value) {}$value = 4; //var_dump($array);unset($value); //var_dump($array);?>array(3) {[0]=>int(1)[1]=>int(2)[2]=>&int(4)}array(3) {[0]=>int(1)[1]=>int(2)[2]=>int(4)}foreach中unset引用&元素,只是 阅读全文
posted @ 2011-05-24 18:46
DavidYanXW
阅读(368)
评论(0)
推荐(0)
摘要:
转载自: http://www.ccvita.com/26.htmlPHP 计算页面执行时间<?php< ?phpclassruntime{ var$StartTime=0; var$StopTime=0; functionget_microtime() { list($usec,$sec)=explode('',microtime()); return((float)$usec+(float)$sec); } functionstart() { $this->StartTime=$this->get_microtime(); } functionsto 阅读全文
posted @ 2011-05-24 15:04
DavidYanXW
阅读(185)
评论(0)
推荐(0)
浙公网安备 33010602011771号