Re: [PHP4BETA] Two questions:

From: Date: Thu, 13 Apr 2000 20:40:24 +0000
Subject: Re: [PHP4BETA] Two questions:
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-13530@lists.php.net to get a copy of this message
On Thu, 13 Apr 2000, Colin Viebrock wrote: > Except that those outside variables might be defined on another page > and are global to the site. i.e. I can duplicate the entire site and > just change some local variables in the one file. > > I'd rather not have to edit the class files everytime I make a copy of > the site (as I would in your example). > > At the very least, I'd settle for being able to do: > > class test { > var $foo = $GLOBAL['FOO']; > } > > or even: > > class test { > global $FOO; > var $foo = $FOO; > } Sorry, that's just not going to be possible in PHP 4. -Andrei Give a man a fish; you have fed him for today. Teach a man to fish; and you can sell him fishing equipment. -Author unknown

« previous php.version4 (#13530) next »