随笔分类 - PHP
摘要:```php class md5_filter extends php_user_filter{ public function filter($in,$out,&$consumed,$closing){ while($bucket = stream_bucket_make_writeable($in)){ $buck...
        阅读全文
            
摘要://全局相关php artisan:显示详细的命令行帮助信息,同 php artisan listphp artisan –help:显示帮助命令的使用格式,同 php artisan helpphp artisan –version:显示当前使用的 Laravel 版本php artisan ch...
        阅读全文
            
摘要:_handler = $handler; } protected function _success($request){ echo $request->getName(),'request was passed '; return true; } abstract functi...
        阅读全文
            
摘要:装饰器模式_weapon = $weapon; } public function cost(){ return $this->_weapon->cost() + $this->_price; } public function descript...
        阅读全文
            
摘要:适配器模式'; }}//类适配器模式class Adapter implements Target{ private $adatee; public function __construct(Adatee $adatee){ $this->adatee = $adat...
        阅读全文
            
摘要:观察者模式_observers[] = $sub; } //外部统一调用 public function trigger(){ if(!empty($this->_observers)){ ...
        阅读全文
            
摘要:策略模式getTrafic(); } } $trafics = new Trafic(); $trafics->useTrafic(new bikeStrategy());?>
        阅读全文
            
摘要:getMethods()); //var_dump($reflection->getProperties()); class dbTypes implements ArrayAccess{ private $dbtypes = array(); ...
        阅读全文
            
摘要:1 dir = $dir;12 13 }14 /**15 * @desc 设置文件缓存16 * @param string $key 文件名 17 * @param un...
        阅读全文
            
摘要:1 null); 4 /** 5 * @desc 返回JSON格式 6 * @param int $code 7 * @param string $message 8 * @param array $da...
        阅读全文
            
 浙公网安备 33010602011771号
浙公网安备 33010602011771号