|
Posted by Daniel Schierbeck on 10/20/40 11:05
Christopher Fulton wrote:
> This should work for you then....(maybe...i don't have php5 on my
> system, so it may not, but i think it would.
> http://us4.php.net/manual/en/function.get-class.php
>
> class Car {
> function drive() {
> return get_class($this);
> }
> }
>
> class Porshe {
> }
>
> $foo = new Porshe();
> echo $foo->drive();
>
He needs a static function, ie Porche::drive()
Navigation:
[Reply to this message]
|