RE: [PHP] clases and variables

From: Date: Wed, 01 Nov 2000 01:07:02 +0000
Subject: RE: [PHP] clases and variables
Groups: php.general 
Request: Send a blank email to php-general+get-23035@lists.php.net to get a copy of this message
The propper use, i believe, is $this->var1 and not $var1 > -----Original Message----- > From: Martin A. Marques [mailto:martin@math.unl.edu.ar] > Sent: Tuesday, October 31, 2000 7:14 PM > To: php-general@lists.php.net > Subject: [PHP] clases and variables > > > Is it posible to use a variable inside a class which is not > defined inside > the class? > > class something { > > var var1; > > function instance1 { > if (var1) { > var2 = false > } > } > } > > > Is this posible? > > -- > "And I'm happy, because you make me feel good, about me." - > Melvin Udall > ----------------------------------------------------------------- > Martín Marqués email: martin@math.unl.edu.ar > Santa Fe - Argentina http://math.unl.edu.ar/~martin/ > Administrador de sistemas en math.unl.edu.ar > ----------------------------------------------------------------- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#23035) next »