![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
qdncmsoe9iua
这个作者很懒,什么都没留下…
展开
-
ubuntu16.04 安装和使用composer
1、安装php sudo apt install php7.0 2、下载composer-setup.php php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09...原创 2018-08-15 09:37:27 · 453 阅读 · 0 评论 -
3种基本设计模式
1、工厂模式,工厂方法或者类生成对象,而不是在代码中直接new class Factory { static function createDatabase() { //Database类为单例模式 $db = new Database::getInstance; return $db; } } 2、单...原创 2018-08-13 22:04:01 · 238 阅读 · 0 评论 -
php字符串和0 == 判断 永远为true
php -r "var_dump( 'a' == 0 );" true原创 2018-10-12 14:50:24 · 4178 阅读 · 0 评论