- 博客(6)
- 资源 (3)
- 收藏
- 关注
转载 php 几种排序算法
纯属转载 原地址: http://www.jb51.NET/article/80914.htm 1、直接插入排序/* * 直接插入排序,插入排序的思想是:当前插入位置之前的元素有序, * 若插入当前位置的元素比有序元素最后一个元素大,则什么也不做, * 否则在有序序列中找到插入的位置,并插入 */function insertSort($arr) { $len= c
2017-05-27 17:37:34 348
原创 mysql 之序列表,自增id作用
// 序列表 Drop table if exists sequence; create table if not exists sequence( `name` varchar(50) not null, `current_value` int(11) not null, `increment` int(11) not null default '1'
2017-05-27 16:55:53 1934
原创 php 设计模式之 单列模式
class test { public static $haha = null; public static function get_obj() { if( ! ( self::$haha instanceof self ) ) { self::$haha = new self; } re
2017-05-27 09:59:07 312
转载 php 设计模式之观察者模式
// 观察者模式 // 1.抽象事件发生类 abstract class EventGenerator { // 观察者 对象 集合 private $observers = array();// add observers function addObserver(Observer $observer) { $this->observers[] = $observ
2017-05-27 09:45:23 296
转载 php获取 用户所在的城市地址
原地址,忘了来着:??? function getCity($ip = '')//获取地区 { if($ip == ''){ $url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json";//新浪借口获取访问者地区 $ip=json_decode(file_get_c
2017-05-26 17:13:40 3074
转载 从官方下载apache服务器
纯转载 : 原地址 : http://www.cnblogs.com/wangshuyi/p/6815965.html 1.进入apache服务器官网http://httpd.apache.org/,这里我们以下载稳定版的httpd 2.4.25为例,点击download。 2.点击链接Files for Microsoft Windows 3
2017-05-20 22:45:54 317
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人