无法理解这个php解析器错误

1 php

为什么这会给我解析错误?在这疯狂

我有这个文件:

function start_connection() {

 global $config['db_host'];

}
Run Code Online (Sandbox Code Playgroud)

解析错误:解析错误,','' or在第5行的functions.php中期待';''

Nat*_*han 8

当声明全局变量不包含数组键时,所以:

global $config;
Run Code Online (Sandbox Code Playgroud)

这将提供对函数start_connection()中$ config数组内所有key =>值对的访问.