<?php class Foo { public function __toString() { return 'Foo'; } } class Bar extends Foo { public function __toString() { return 'Bar'; } } $bar = new Bar; //How do I call Foo::__toString() on $bar?
You have javascript disabled. You will not be able to edit any code.