is it possible to do something like this... I cant get it working.
class test { function test(){ if($someCondition){ $this = new SomeOtherClass } } }
not that i'm aware of - you'd have to give your class a 'convert' function, which creates an instance of the new class and then copies all the properties over and then re-set it;
$instance = $instance->convert();