2018年12月8日

摘要: 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 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(109) 评论(0) 推荐(0) 编辑
摘要: class MySQLDB { public $link;// 用于保存链接资源 /** * 构造方法 */ public function __construct() { $this->link = mysql_connect("localhost:3306",'root','zhouyang'); } /** ... 阅读全文
posted @ 2018-12-08 10:28 薇薇123456 阅读(71) 评论(0) 推荐(0) 编辑

导航