基础扩展

This commit is contained in:
2025-09-16 18:18:20 +08:00
parent 96fc75c2b4
commit dfd284f255
10 changed files with 472 additions and 27 deletions

View File

@@ -2,3 +2,24 @@
/**
* Here is your custom functions.
*/
if (!function_exists('p')) {
/**
* 将数组 key 的命名方式转换为小写驼峰
* @param array $array 被转换的数组
* @param array $keys 要转换的 key默认所有
* @return array
*/
function p(...$p)
{
if(count($p) > 1) {
foreach ($p as $k => $v) {
print_r($v);
print_r('---');
}
}else {
print_r($p[0]);
}
die;
}
}