摘要: send = $send; } abstract public function msg($content); public function send($to,$content){ $content = $this->msg($content); $this->send->send($to,$content); } } ... 阅读全文
posted @ 2019-05-30 16:58 zhang-san 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 28,'wind' =>7,'sun' => 'sunny']; return serialize($today); } } //适配器 class AdapterTianqi extends tianqi { public static function show(){ $today = unserialize(parent::show())... 阅读全文
posted @ 2019-05-30 16:28 zhang-san 阅读(104) 评论(0) 推荐(0) 编辑
摘要: content = $content; } public function decorator(){ return $this->content; } } //编辑文章摘要 class BianArt extends BaseArt { public function __construct(BaseArt $art){ ... 阅读全文
posted @ 2019-05-30 15:59 zhang-san 阅读(76) 评论(0) 推荐(0) 编辑
摘要: calc = new $calc(); } public function calc($op1,$op2){ return $this->calc->calc($op1,$op2); } } $type = $_POST['op']; $cmath = new CMath($type); echo $cmath->calc((int)$_POST... 阅读全文
posted @ 2019-05-30 15:21 zhang-san 阅读(96) 评论(0) 推荐(0) 编辑