php
文章平均质量分 52
HoneyJim
China i cant stand you any more..Damn it
展开
-
php 普通方法中被static修饰的变量
直接贴代码:function yy(){ static $a = 0; $a += 1; return $a;}function yy2(){ $a = 0; $a += 1; return $a;}$r1 = yy();$r2 = yy();$r原创 2012-02-28 17:39:10 · 449 阅读 · 0 评论 -
How to make a automated testing for web applications
As a developer of web application(assume PHP developer),sometimes we have to have test to the logics code we have done ..In general,someone think of the first way is using PHPUnit.yes here is the purp原创 2017-09-26 22:59:52 · 251 阅读 · 1 评论 -
Thinkphp 3.2 cli mode + crontab
1、在Mode下复制common.php 为cli.php原创 2016-10-15 01:19:45 · 1450 阅读 · 0 评论 -
LNMP安装实践
1、啊,好久没写博客了,之前以为做php原创 2014-04-23 15:14:33 · 645 阅读 · 0 评论 -
php正则匹配图片
$imagePatter = '/themes.*\.(jpg|png|gif|ico)/';preg_match_all($imagePatter, $content, $imageM);原创 2013-01-25 11:15:33 · 516 阅读 · 0 评论 -
php 位运算 按位与 按位或 按位异或
按位与 双1 为 1按位或 单1为1按位异或 一0一1 为1原创 2012-11-29 15:49:36 · 899 阅读 · 0 评论 -
Deep into Laravel Facade
Facade 请求时,一定要用静态调用,比如:hash::make(password),因为Facade基类实现了__callStatic方法,子类Facade 中必须实现getFacadeAccessor 方法,此方法返回Container中绑定的关键字【其实是解析时用到的key】基类中返回了Container中key相关的实例,用hash举例,当调用hash::make时,在基类中先返回C...原创 2019-05-17 18:09:12 · 170 阅读 · 0 评论