Mac PHP7 Lumen Event冲突 在使用Lumen进行开发的时候。如果你使用:./artisan的时候报错:Cannot declare class Event, because the... 2016-12-07 · PHP
Yii2 静态方法 中怎么触发事件 在ActiveRecord的init中写了一个简单的事件触发: PHP代码 public function init(){ $event = new XxxEvent(... 2016-10-28 · PHP
Yii2 updateAll tips Yii2 中的updateAll可以接受三个参数,$attributes,$condition,$params = null 第一个参数是要更新的值,第... 2016-10-17 · PHP
PHP 7 DomDocument not found 升到PHP7后,当用到DomDocument的时候,报错说class DomDocument not found。。。 用php -m|grep xml,可以... 2016-10-13 · PHP
去除内容中所有的多余的空格和空行 去除内容中所有的多余的空格和空行 PHP代码 php > $str = "a b c d\n\ne f g \t 2"; php > echo preg_repla... 2016-09-07 · PHP
wordpress 升级遇到问题 升级wordpress的时候遇到:Briefly unavailable for scheduled maintenance. Check back in a minute. 其实... 2016-08-27 · PHP
ThinkPHP group count 如果用sql语句来写group by 再count,这样的sql太容易 了。但由于现在都是在用框架,反而这类sql变得难写了... 2016-08-17 · PHP
宁可错杀3000,不可放走一个 看到这个,应该明白了吧 delete from sablog_comments where visible =0 and content REGEXP '^{6} ' 定期... 2016-08-07 · PHP
composer引用本地git做为源库 PHP使用者大多对composer是又爱又恨,爱的是composer require后,很多类库不用去下载了,恨的是网速卡成翔... 2016-05-05 · PHP
Composer的Illegal offset type in isset or empty 标题的内容也是手贱导致的,本来composer不self-update也不会出现这个问题,这不,一升到最新的composer就... 2016-03-30 · PHP
The file or directory to be published does not exist: vendor/bower/jquery/dist 标题所说的问题可能早期用户都遇到过。但其实这个问题在官方也早就有解决方案了,不知道为什么还有人问起。... 2016-01-22 · PHP