- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 Linux
注:以下内容均来自bilibili “遇见狂神说” 大神直播笔记内容 https://space.bilibili.com/95256449/video关机指令:shutdownsync # 将数据由内存同步到硬盘中。shutdown # 关机指令shutdown –h 10 # 计算机将在10分钟后关机shutdown –h now # 立马关机shutdown –h 20:25 # 系统会在今天20:25关机shutdown –h +10 # 十分钟后关机shutdown –
2022-04-27 11:26:50
1072
原创 CURL (post+get)
四种方式://封装curlpublic 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
139
原创 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
481
原创 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
2720
4
原创 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
54
原创 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
129
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人