logo
Apr
7
Marijan Šuflaj

Exceptions in PHP

PHP supports two ways of reporting the problem in the code. Errors and exceptions . What’s the difference then?

First at all, exceptions are object-oriented way of processing errors, while error are procedural (using functions) way of reporting the problem. Which of them is better to use? Definitely exceptions, as they offer much more control over the code. PHP has a standard class Exception, which can be extended.

Read the rest

logo
Powered by Wordpress | Designed by Elegant Themes | CopyRight ©2010 php4every1.com