摘要:
1 <?php 2 function check_data($array,$key){ 3 $start = 0;//开始数组下标 4 $end = count($array)-1;//结束数组下标 5 $c = 0;//循环次数 6 while($start <= $end ){ 7 $c++; 8 $mid = floor(($start+$end)/2);//数组中间下标 9 if($key > $array[$mid]){10 $start = $mid;11 ... 阅读全文
posted @ 2012-03-20 12:16
小冰PHPer
阅读(203)
评论(0)
推荐(0)

浙公网安备 33010602011771号