会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pengcx
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
24
下一页
2019年3月29日
php 批量下载文件
摘要: public function batchDownload() { $filename = 'tmp.zip'; $zipName = date('YmdHi') . '.zip'; $files = 'xxxx';//文件列表 $zip = new \ZipArchive(); $zip->open($fi...
阅读全文
posted @ 2019-03-29 11:17 pengcx
阅读(2046)
评论(0)
推荐(0)
2019年3月28日
laravel 打印完整sql
摘要: DB::connection()->enableQueryLog(); // 开启QueryLog \App\User::find(1); dump(DB::getQueryLog());
阅读全文
posted @ 2019-03-28 17:31 pengcx
阅读(445)
评论(0)
推荐(0)
2019年3月22日
给函数取一个 好 名字
摘要:
阅读全文
posted @ 2019-03-22 19:04 pengcx
阅读(174)
评论(0)
推荐(0)
2019年3月15日
php 截取字符串
摘要: 去除掉最后面的01 $str = '中国-福建-厦门-湖里-01';echo str_replace(strrchr($str, "-"), '', $str);
阅读全文
posted @ 2019-03-15 09:33 pengcx
阅读(199)
评论(0)
推荐(0)
2019年3月14日
js 对象与json的转化
摘要: 1、将对象转换为JSON格式字符串 2、将JSON字符串转换为对象
阅读全文
posted @ 2019-03-14 20:18 pengcx
阅读(449)
评论(0)
推荐(0)
2019年1月28日
php获取指定日期,前一天、前一周、前一个月、前一年,后一天,后一周,前一个月,前一年
摘要: dump(date('Y-m-d', strtotime('2018-10-1 +1 day'))); dump(date('Y-m-d', strtotime('2018-10-1 +1 week'))); dump(date('Y-m-d', strtotime('2018-10-1 +1 mo
阅读全文
posted @ 2019-01-28 10:00 pengcx
阅读(2247)
评论(0)
推荐(0)
2019年1月7日
php常用字符串方法
摘要: chop() 移除字符串右侧的空白字符或其他字符ltrim() 移除字符串左侧的空白字符或其他字符rtrim() 移除字符串右侧的空白字符或其他字符trim() 移除字符串两侧空白字符或其他字符chunk_split() 把字符串分割为一连串更小的部分explode() 把字符串转化为数组implo
阅读全文
posted @ 2019-01-07 18:01 pengcx
阅读(147)
评论(0)
推荐(0)
2018年12月27日
vi/vim 三种模式的操作
摘要: 来源:http://www.runoob.com/linux/linux-vim.html ps:刚刚进入vi/vim 是命令模式 一、命令模式 i 切换到输入模式,以输入字符。 x 删除当前光标所在处的字符。 : 切换到底线命令模式,以在最底一行输入命令。 二、输入模式 字符按键以及Shift组合
阅读全文
posted @ 2018-12-27 11:14 pengcx
阅读(2721)
评论(0)
推荐(0)
2018年12月21日
mpdf-html转PDF,中文字符乱码、加粗问题
摘要: ps:resource_path()新增字体路径 R:字体;B加粗;I:斜体;BI加粗斜体; 参考:https://blog.csdn.net/alexandsunny/article/details/81457896?utm_source=blogxgwz7
阅读全文
posted @ 2018-12-21 16:22 pengcx
阅读(1315)
评论(0)
推荐(0)
2018年11月29日
git操作之git clean删除一些没有git add的文件
摘要: 删除 一些 没有 git add 的 文件; git clean 参数 -n 显示 将要 删除的 文件 和 目录 -f 删除 文件,-df 删除 文件 和 目录
阅读全文
posted @ 2018-11-29 10:40 pengcx
阅读(8325)
评论(2)
推荐(1)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
24
下一页
公告