合集-https://hlimg.cn
摘要://最大堆 $heap = new \SplMaxHeap(); $heap->insert("data1"); $heap->insert("data2"); // echo $heap->extract(); //最小堆 $heap = new \SplMinHeap(); $heap->ins
阅读全文
摘要://阵列 创建固定长度的数组----定长数组 $arr = new SplFixedArray(4); $arr[0] = 'php'; $arr[1] = 1; $arr[3] = 'python';//遍历, $arr[2] 为null foreach($arr as $v) { echo $v
阅读全文
摘要:error('@错误 :('); } if(!$seah && !$keyname && !$max && !$min) { print_r($data);exit; } //搜索名字 // print_r($data); for ($i = 0; $i 2 ?1:0; if ($p==1) { f
阅读全文
摘要:$sign = array( 'ip'=>'1.15.23.31' // array('ip'=>'2.34.45.34'), ); $ip = setSign($sign); for ($i = 0; $i < count($ip); $i++) { $url = "http://hn216.ap
阅读全文

浙公网安备 33010602011771号