- PHP 修改 php.ini 配置 函数 ini_set();
- PHP 防注入函数 mysql_real_escape_string
- redis 数据类型 : 字符串、哈希、枚举、列表、有序列表
-
return mb_convert_encoding(mb_convert_encoding($content, "GBK", "UTF-8"), "UTF-8", "GBK"); 过滤表情
- 计算两个时间段的每天的日期
$stimestamp = strtotime($startdate); $etimestamp = strtotime($enddate); if ($etimestamp < $stimestamp) return []; // 计算日期段内有多少天 $days = (int)ceil(($etimestamp - $stimestamp) / 86400); // 保存每天日期 $date = array(); for ($i = 0; $i < $days; $i++) { $date[] = date('Y-m-d', $stimestamp + (86400 * $i)); } return $date;
本周时间开始 date('Y-m-d', strtotime('this week'))
PHP 记录
最新推荐文章于 2022-08-29 10:49:31 发布