摘要:
阅读全文
posted @ 2019-05-29 16:26
zhang-san
阅读(271)
评论(0)
推荐(0)
摘要:
<?php //观察者模式 class User implements SplSubject{ public $lognum; public $hobby; protected $observers = null; public function __construct($hobby){ $this 阅读全文
posted @ 2019-05-29 14:56
zhang-san
阅读(194)
评论(0)
推荐(0)
摘要:
//单例模式 class sigle{ private static $ins = null; public static function getIns(){ if(self::$ins === null){ self::$ins = new self(); } return s... 阅读全文
posted @ 2019-05-29 14:54
zhang-san
阅读(114)
评论(0)
推荐(0)

浙公网安备 33010602011771号