- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 Linux
注:以下内容均来自bilibili “遇见狂神说” 大神直播笔记内容 https://space.bilibili.com/95256449/video 关机指令:shutdown sync # 将数据由内存同步到硬盘中。 shutdown # 关机指令 shutdown –h 10 # 计算机将在10分钟后关机 shutdown –h now # 立马关机 shutdown –h 20:25 # 系统会在今天20:25关机 shutdown –h +10 # 十分钟后关机 shutdown –
2022-04-27 11:26:50
1646
原创 CURL (post+get)
四种方式: //封装curl public static function curl($url, $data = null, $method = 'get', $https = true) { if (is_array($data)) { $data = json_encode($data); } $header = array('Content-Type:application/json;Charset=utf-8');//增加$header 设置 Content-
2022-04-27 10:37:00
245
原创 PHP/MySQL 关于时间函数、时间戳,时间范围
mktime() 函数返回日期的 Unix 时间戳。Unix 时间戳包含 Unix 纪元(1970 年 1 月 1 日 00:00:00 GMT)与指定时间之间的秒数。 mktime(hour,minute,second,month,day,year) <?php $d=mktime(9, 12, 31, 6, 10, 2015); echo "创建日期是 " . date("Y-m-d h:i:sa", $d); ?> PHP strtotime() 函数用于把人类可读的字符串转换为 Uni
2022-04-27 10:30:11
630
原创 fastadmin 导出Excel
一、在控制器文件顶端添加以下引用 use PhpOffice\PhpSpreadsheet\Helper\Sample; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; use PhpOffice\PhpSpreadsheet\Cell\Coordinate; use PhpOffice\PhpSpreadsh
2022-04-27 10:14:39
3256
6
原创 GIT汇总
上传 git add . -> git commit -m “消息内容” -> git push 本地上传 # 查看指定文件状态 git status [filename] # 查看所有文件状态 git status # 添加所有文件到暂存区 git add . # 提交暂存区中的内容到本地仓库 -m 提交信息 git commit -m "消息内容" git push git分支中常用指令: # 列出所有.
2022-04-27 10:05:16
131
原创 PHP基础操作
多维数组去重 /** * 多维数组去重 * @param array $arr [description] * @return [type] [description] */ static function super_unique($array, $recursion = false){ // 序列化数组元素,去除重复 $result = array_map('unserialize', array_unique(array_map('serialize', $...
2022-04-27 09:41:39
231
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅