基于const常量理解个中类型的内存分配引入参考 官方:Constant expressions may contain only constant operands and are evaluated at compile time. Using constants can often be mo Read More
posted @ 2022-07-23 16:59 大匠 Views(52) Comments(0) Diggs(0) Edit
class Father{ public static function getStatic(){ return new static(); } public static function getSelf(){ return new self(); } } trait GrandFather{ p Read More
posted @ 2021-03-14 10:40 大匠 Views(49) Comments(0) Diggs(0) Edit
yum -y install mysql Read More
posted @ 2019-12-18 18:06 大匠 Views(206) Comments(0) Diggs(0) Edit
需求:想使用下边的样式但是使用yii中的表单样式会 <?= $form->field($model, 'attribute_code')->textInput()->label('attribute代码名称') ?> 带有大量无用的div和clas样式,想要自定义可以通过ActiveForm中的fi Read More
posted @ 2019-09-21 15:10 大匠 Views(559) Comments(0) Diggs(0) Edit
获取某一列数据 更新操作 updateInternal不需要验证 updateCounters您可以使用 updateCounters()更新一个或多个计数列;参考 Note that this method differs from updateAllCounters() in that it o Read More
posted @ 2019-01-20 11:31 大匠 Views(175) Comments(0) Diggs(0) Edit
window版curl https://curl.haxx.se/download.html window版memcache http://pecl.php.net/package/memcache/3.0.8/windows window版memcached https://github.com/ Read More
posted @ 2018-09-19 15:01 大匠 Views(222) Comments(0) Diggs(0) Edit
Warning: simplexml_load_string(): Entity: line 432: parser error : EntityRef: expecting ';' character is used in XML to insert a character reference w... Read More
posted @ 2015-12-10 17:21 大匠 Views(1129) Comments(0) Diggs(0) Edit
PHP Warning: PHP Startup: in Unknown on line 0这种情况是因为扩展路径有问题导致的路径或错,或没有该扩展但ini中开启了此扩展 Read More
posted @ 2015-09-14 13:55 大匠 Views(184) Comments(0) Diggs(0) Edit
posted @ 2015-08-31 13:10 大匠 Views(699) Comments(0) Diggs(0) Edit
select * from testsort order by sort desc ,status desc; sort字段为第一排序选择,status为第二排序选择 Read More
posted @ 2015-07-24 14:15 大匠 Views(725) Comments(0) Diggs(0) Edit