12 2018 档案

字符串截取
摘要:substr($xml,strpos($xml,'<ajax>')); 阅读全文

posted @ 2018-12-29 09:39 薇薇123456 阅读(67) 评论(0) 推荐(0)

数组去重
摘要:array('name'=>'花花','age'=>20), 1=>array('name'=>'花花','age'=>20) ); $student2 = array_unique($student,SORT_REGULAR); var_dump($student); var_dump($student2);die; 阅读全文

posted @ 2018-12-29 09:25 薇薇123456 阅读(57) 评论(0) 推荐(0)

ksort排序的依据是什么
摘要:ksort:升序 asort:降序 阅读全文

posted @ 2018-12-15 15:04 薇薇123456 阅读(164) 评论(0) 推荐(0)

安装php_sqlsrv扩展
摘要:https://www.cnblogs.com/wtcl/p/7727636.html 阅读全文

posted @ 2018-12-14 15:06 薇薇123456 阅读(65) 评论(0) 推荐(0)

mysqli_query数据库有数据,查不出来
摘要:MySQLDB.class.php test.php 阅读全文

posted @ 2018-12-11 18:32 薇薇123456 阅读(260) 评论(0) 推荐(0)

tp5查看版本
摘要:5.0 5.1 阅读全文

posted @ 2018-12-11 16:42 薇薇123456 阅读(115) 评论(0) 推荐(0)

子类重写父类方法
摘要:class Goods{ public $goods_name; public function __construct($g_name){ $this->goods_name = $g_name; } } class Book extends Goods{ public $author; public function __constru... 阅读全文

posted @ 2018-12-08 15:23 薇薇123456 阅读(120) 评论(0) 推荐(0)

Memcache类
摘要:class Memcache{ private static $mem = null; public function mem_create(){ self::$mem = new \Memcache(); self::$mem->connect('127.0.0.1'); } public function __destruct(... 阅读全文

posted @ 2018-12-08 10:44 薇薇123456 阅读(112) 评论(0) 推荐(0)

数据库类
摘要:class MySQLDB { public $link;// 用于保存链接资源 /** * 构造方法 */ public function __construct() { $this->link = mysql_connect("localhost:3306",'root','zhouyang'); } /** ... 阅读全文

posted @ 2018-12-08 10:28 薇薇123456 阅读(78) 评论(0) 推荐(0)

shell统计昨天的独立ip
摘要:test.txt shell命令 心路历程 awk:统计 -v:传参 -F:定义分隔符 !a[$1]++:去重 print:打印 备注:去重可参考https://www.cnblogs.com/chongchong88/p/6085905.html 阅读全文

posted @ 2018-12-06 15:37 薇薇123456 阅读(128) 评论(0) 推荐(0)

tp5安装验证码
摘要: 阅读全文

posted @ 2018-12-06 15:19 薇薇123456 阅读(162) 评论(0) 推荐(0)

导航