diff options
author | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-28 15:46:02 +0100 |
---|---|---|
committer | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-28 15:46:02 +0100 |
commit | 9185842b1d2fd352f6d71a46d2017fa25cc3c6a7 (patch) | |
tree | 9d7af5cea5cbdd98dc53e48cd92d21080b8acea7 /Examples/Exceptions | |
parent | a6587568fe996abc6b128d5e78d61c342e95d922 (diff) |
Additional functions with parameters; references, objects and arrays
Diffstat (limited to 'Examples/Exceptions')
-rw-r--r-- | Examples/Exceptions/exception.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Examples/Exceptions/exception.php b/Examples/Exceptions/exception.php index 0fffff7..3f567b3 100644 --- a/Examples/Exceptions/exception.php +++ b/Examples/Exceptions/exception.php @@ -12,6 +12,14 @@ /* * Run a function which throws an exception. */ - -echo "Function which throws an exception; my_throw_exception_function()\n" -echo my_throw_exception_function() . "\n"; + +try +{ + echo "Function which throws an exception; my_throw_exception_function()\n" + echo my_throw_exception_function() . "\n"; +} +catch (Exception $exception) +{ + + +} |