Re: $GLOBAL question

From: Date: Mon, 18 Aug 2003 17:43:54 +0000
Subject: Re: $GLOBAL question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159938@lists.php.net to get a copy of this message
$GLOBALS not $GLOBAL Greg -- phpDocumentor http://www.phpdoc.org Robin Kopetzky wrote:
Good Morning!! I'm trying to print $GLOBALs this way and it doesn't work: <?php
    $aTest = "This is a test";
        function GlobalCheck()
    {
        print "{$GLOBAL['aTest']}";
    }
        GlobalCheck();
?> Does someone know the 'right' way to do this?? Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020


« previous php.general (#159938) next »