Re: [PHP] Print extended/parent classes

2006-02-01 Thread David Grant
Jochem, Good point. I thought he meant object given his example. :P David Jochem Maas wrote: > David Grant wrote: >> Mathijs, >> >> Mathijs wrote: >> >>> I have the following situation : >>> >>> >> >>> class A { >>> public $var1; >>> } >>> >>> class B extends A { >>> public $var2; >>> } >>> >>>

Re: [PHP] Print extended/parent classes

2006-02-01 Thread Jochem Maas
David Grant wrote: Mathijs, Mathijs wrote: I have the following situation : Now I want to print this object ***object*** Does anybody know how I can print class A also ? ***class*** (class and object are not interchangable concepts - yet they are closely related :-)

Re: [PHP] Print extended/parent classes

2006-02-01 Thread David Grant
Mathijs, Mathijs wrote: > I have the following situation : > > > class A { > public $var1; > } > > class B extends A { > public $var2; > } > > ?> > > Now I want to print this object > > $obj = new B; > print_r($obj); > > ?> > > Does anybody know how I can print class A also ? The above

[PHP] Print extended/parent classes

2006-02-01 Thread Mathijs
I have the following situation : Now I want to print this object Does anybody know how I can print class A also ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php