<?php class MyException extends Exception {} class My2Exception extends Exception {} function consume(MyException $e) { var_dump(get_class($e)); } consume(new MyException); consume(new My2Exception);
You have javascript disabled. You will not be able to edit any code.