PHP7.4 当数组索引不存在时会出错
PHP会出现这样提示
['realname' => $user['realname']]
Trying to access array offset on value of type null
推荐文章: