Try it out for yourself. :-
class Test{
var $x = '';
function Test(){}
}
$x = new Test();
$y = new Test();
$x->x = "Way";
$y->x = "No";
print $y->x . $x->x;
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -----Original Message-----
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 2:14 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] OOP with PHP
>
>
> Yesterday, I read in the archives somewhere that in PHP, class
> attributes are all static attributes (class variables), not instance
> variables. (Figures, I can't find it again, so I can't provide a
> link.) In other words, the attributes apply to every single
> instance of
> an object. This contradicts my limited experience with OOP
> in PHP, but
> I hoped someone could confirm this before I write up this giant class
> I'm working on.
>
> Thanks!
>
>
> Erik
>
>
>
>
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php