📅  最后修改于: 2022-03-11 14:53:54.278000             🧑  作者: Mango
function get_multi($arr, $str) {
foreach (explode('.', $str) as $key) {
if (!array_key_exists($key, $arr)) {
return NULL;
}
$arr = $arr[$key];
}
return $arr;
}