RE: [PHP] $GLOBAL question

2003-08-19 Thread Ford, Mike [LSS]
On 18 August 2003 18:49, Jonathan Pitcher wrote: > Robin, > > There are 2 problems with the example you provided. > > One, $GLOBAL should be $GLOBALS. > > Second you can't print a value that has not been set. See updated code > for an example. > >$aTest = "This is a test"; > $GLO

Re: [PHP] $GLOBAL question

2003-08-18 Thread Jonathan Pitcher
Robin, There are 2 problems with the example you provided. One, $GLOBAL should be $GLOBALS. Second you can't print a value that has not been set. See updated code for an example. function GlobalCheck() { print "{$GLOBALS['aTest']}"; } GlobalChec

[PHP] $GLOBAL question

2003-08-18 Thread Robin Kopetzky
Good Morning!! I'm trying to print $GLOBALs this way and it doesn't work: Does someone know the 'right' way to do this?? Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/