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;
>>> }
>>>
>>>
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 :-)
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
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
4 matches
Mail list logo