This commit is contained in:
2025-11-18 09:37:05 +08:00
parent 61b2ccf106
commit a3e5568f93
27 changed files with 1055 additions and 46 deletions

View File

@@ -24,6 +24,26 @@ if (!function_exists('p')) {
}
}
/**
* Here is your custom functions.
*/
if (!function_exists('d')) {
/**
* 将数组 key 的命名方式转换为小写驼峰
* @param array $array 被转换的数组
* @param array $keys 要转换的 key默认所有
* @return array
*/
function d()
{
return date('Y-m-d H:i:s');
}
}
/**
* 多维数组去重并重新索引
* @param array $array 待处理的多维数组