RE: [PHP4BETA] Two questions:

From: Date: Thu, 13 Apr 2000 19:28:12 +0000
Subject: RE: [PHP4BETA] Two questions:
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13526@lists.php.net to get a copy of this message
> I don't think you can do var $foo = $somevariable. Doesn't > really make sense to me > anyways. I would think that the scope of variables in class test > does not intertwine > with the scope of outside variables. 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; } __________________________________________________________________ Colin Viebrock easyDNS Technologies control your domain http://www.easyDNS.com

« previous php.version4 (#13526) next »