摘要:substr($xml,strpos($xml,'<ajax>'));
阅读全文
摘要:array('name'=>'花花','age'=>20), 1=>array('name'=>'花花','age'=>20) ); $student2 = array_unique($student,SORT_REGULAR); var_dump($student); var_dump($student2);die;
阅读全文
摘要:https://www.cnblogs.com/wtcl/p/7727636.html
阅读全文
摘要:MySQLDB.class.php test.php
阅读全文
摘要:class Goods{ public $goods_name; public function __construct($g_name){ $this->goods_name = $g_name; } } class Book extends Goods{ public $author; public function __constru...
阅读全文
摘要:class Memcache{ private static $mem = null; public function mem_create(){ self::$mem = new \Memcache(); self::$mem->connect('127.0.0.1'); } public function __destruct(...
阅读全文
摘要:class MySQLDB { public $link;// 用于保存链接资源 /** * 构造方法 */ public function __construct() { $this->link = mysql_connect("localhost:3306",'root','zhouyang'); } /** ...
阅读全文
摘要:test.txt shell命令 心路历程 awk:统计 -v:传参 -F:定义分隔符 !a[$1]++:去重 print:打印 备注:去重可参考https://www.cnblogs.com/chongchong88/p/6085905.html
阅读全文