News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Martynas Jusevicius' Blog:
PHP 5 Features Exceptions
March 25, 2008 @ 10:21:11

On his blog today Martynas Jusevicius talks about a feature that was new in PHP5 - Exceptions:

A useful new feature in PHP 5 is exception handling via the try/throw/catch paradigm. An exception may be thrown and caught. If an exception is thrown in code surrounded by try, the following statements will not be executed, and the exception will be handled by the first matching catch block.

He gives a high-level overview of how Exceptions in PHP5 work and includes a simple example from his work with his DIY Framework.

0 comments voice your opinion now!
php5 exception feature try catch extend framework


blog comments powered by Disqus

Similar Posts

Alexander Netkachev's Blog: A little bit more about Zend_Controller plugins

DevShed: Working with Multiple Document Nodes with the DOM XML Extension in PHP 5

Derek Allard's Blog: Modifying the default CodeIgniter Calendar template for fun and profit

HowTo Forge: How To Harden PHP5 With Suhosin (Debian Etch/Ubuntu)

Zend Developer Zone: Zend Framework Hidden Gems: Zend_Config


Community Events

Don't see your event here?
Let us know!


extension laravel xdebug language introduction example unittest laravel5 series release library community php7 podcast voicesoftheelephpant interview install opinion api framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework