Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class main {
- public function __call($name, $args) {
- throw new Exception("Failed to call specified function");
- }
- }
- $app = new main();
- try {
- $app->doesntexist();
- } catch (Exception $e) {
- print $e->getMessage();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement