For example^
$locale = 'locale_array'.$开发者_StackOverflow中文版locale;
global $$locale -?
$GLOBALS['locale_array'.$locale]
you can use session variables also. dont know if you need.
session_start('SID'); // important: use in every file you need the session vars
$_SESSION['loc'] = 'locale_array'.$locale;
精彩评论