> -Original Message-
> From: Ralph Kutschera [mailto:[EMAIL PROTECTED]
> Sent: 01 August 2007 13:19
> To: php-general@lists.php.net
> Subject: [PHP] Parent Object
>
>
> Hallo!
>
> class A {
> ...
> }
>
> class B extends A {
> ...
>
Hallo!
class A {
...
}
class B extends A {
...
$name = get_parent_class($this); // would be "A"
...
}
This is *not* what I want!
class B {
...
$name = get_parent_class2($this); // should give "A"
...
}
class A {
...
$b = new B();
...
}
This *is* what I want!
How can i res
2 matches
Mail list logo