<?php class foo{} class bar extends foo{} class foobar { function startTest() { $bar = new bar(); $this->test($bar); } function test($testObject) { print_r(get_class($testObject)); } } $foobar = new foobar(); $foobar->startTest();
You have javascript disabled. You will not be able to edit any code.