関数内では関数外でグローバル変数化した変数の値は使えないのでしょうか?
global $hoge;
foo();
exit;
function foo(){
print ($hoge);
}
これは動きませんかね?