i have function and i also have an array,

can i make an array a global in a function?

this is what i have:

function pages_url_mod($page_url, $site_url) {
global $config['site_url'];
return $site_url.$page_url.'.html';
}


thanks


this is my error:

Parse error: parse error, unexpected '[', expecting ',' or ';' in


thanks