12 2019 档案
摘要:/** * 工厂模式 */ //产品必须实现的接口 interface Animal{ public function designation(); } class Dog implements Animal { public function designation() { echo "Dog";
阅读全文
摘要:server <?php /** * websorket 即时通讯服务器 */ class Websocket { private $_serv; private $_pdo; public function __construct($host='0.0.0.0',$port=9501) { $th
阅读全文