Tag Archives: OOP

Finally PHP 5.5 is here

Yes, the pun is intended. With the release of the first PHP5.5 alpha support for the finally keyword is now supported. Earlier I wrote that I think PHP has a lot of catching up to do compared with other languages like Python, Java and C#. Now it looks like that is going to happen with the new coming release of PHP 5.4.

Finally keyword

There is not much to explain 🙂 Everyone who has experience in Java or other bug OO languages already know what is does.

try {
    // Do something
} catch(Exception $e) { 
    // Catch the exception that happens
} finally { 
    // Always execute after handling the exception or when no exception has occured

Continue reading Finally PHP 5.5 is here