<?php class a { public static function get() { $me = get_called_class(); return new $me; } } class b extends a {} print_r(b::get());
You have javascript disabled. You will not be able to edit any code.