<?php class Foo { public function bar() { echo 'here'; } } class Bel { public function bar() { echo 'there'; } } class_alias('Foo', 'Baz'); $b = new Baz; $b->bar(); class_alias('Bel', 'Baz'); $c = new Bel; $c->bar();
You have javascript disabled. You will not be able to edit any code.