阅读背景:

如何在php中声明全局变量?

来源:互联网 

I have code something like this:

我有这样的代码:

<?
    $a="localhost";
    function body(){
        global $a;
        echo $a;
    }

    function head(){
        global $a;
        echo $a;
    }

    function footer(){
        global $a;
        echo $a;
    }
?>
<



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: