<?php
function get_var(){
$var = array("site_name" => "site_value", "site_des" => "site_value2");
foreach ($var as $key => $val){
$GLOBALS[$key] = $val;
}
}
function get_other(){
get_var();
return 'hi '.$GLOBALS["site_name"]; // hi site_value
}
print(get_other());
?>