上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 34 下一页
摘要: $str = "The quick brown fox jumped over the lazy dog."; $str = preg_replace('/\s/','-',$str); echo $str;更详细的请看原著摘抄自http://www.5idev.com/p-php_preg_rep 阅读全文
posted @ 2017-10-22 17:11 西瓜霜 阅读(588) 评论(0) 推荐(0) 编辑
摘要: $fu = new FileUtil(); $fu->copyFile('a/1/2/3', 'a/1/2/4'); 阅读全文
posted @ 2017-10-20 16:14 西瓜霜 阅读(2281) 评论(0) 推荐(0) 编辑
摘要: $("<img/>").attr("src", "http://www.example.com/images/bag001.jpg").load(function() {imgWidth = this.width;imgHeight = this.height;}); 如果是设定了宽度获取高度,或者 阅读全文
posted @ 2017-10-10 16:23 西瓜霜 阅读(584) 评论(0) 推荐(0) 编辑
摘要: $members=$model->table('zhope_card A') ->join('zhope_user U ON A.adduser=U.id',"LEFT") ->join('zhope_tpl T ON A.tpl=T.id') ->field('A.id AS I,A.cid AS 阅读全文
posted @ 2017-09-17 11:00 西瓜霜 阅读(6158) 评论(0) 推荐(1) 编辑
摘要: http://www.kuaidi100.com/query?type=快递品牌编码&postid=快递号 阅读全文
posted @ 2017-08-25 18:26 西瓜霜 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1. php类中,静态方法调用当前类的非静态方法必须用self关键字,不能用$this 2. php类中,公有方法调用私有方法使用$this关键字,只能实例化调用 3. php类中,公有方法调用私有方法使用self关键字,此共有方法自动转化为静态方法 4. php类中,静态方法不能调用非静态属性。因 阅读全文
posted @ 2017-08-17 16:53 西瓜霜 阅读(1654) 评论(0) 推荐(0) 编辑
摘要: function ppost($url,$arr){ $post_data = json_encode($arr); $url=$url; $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt(... 阅读全文
posted @ 2017-08-10 17:01 西瓜霜 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 如果是https的话,就加上这两句 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // https请求 不验证证书和hostscurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); 阅读全文
posted @ 2017-08-09 08:37 西瓜霜 阅读(2960) 评论(0) 推荐(0) 编辑
摘要: $f='./test.txt'; file_put_contents($f,str_replace('{{modulename}}','Hospital',file_get_contents($f))); 阅读全文
posted @ 2017-06-29 08:26 西瓜霜 阅读(3490) 评论(0) 推荐(0) 编辑
摘要: 1.在确认cmd 下载好composer 2. composer -V 3. composer config -g repo.packagist composer https://packagist.phpcomposer.com 4.composer create-project laravel/ 阅读全文
posted @ 2017-06-24 08:47 西瓜霜 阅读(722) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 34 下一页