Prev | Current Page 277 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"


Summary
This and the previous chapter introduced you to the entire gamut of PHP??™s OOP features,
both old and new. Although the PHP development team was careful to ensure that
users aren??™t constrained to these features, the improvements and additions made
regarding PHP??™s ability to operate in conjunction with this important development
paradigm represent a quantum leap forward for the language. If you??™re an old hand at
OOP, we hope these last two chapters have left you smiling ear to ear over the longawaited
capabilities introduced within these pages. If you??™re new to OOP, the material
should help you to better understand many of the key OOP concepts and inspire you
to perform additional experimentation and research.
The next chapter introduces yet another new, and certainly long-awaited, feature
of PHP 5: exception handling.
213
?–  ?–  ?– 
C H A P T E R 8
Error and Exception Handling
Even if you wear an S on your chest when it comes to programming, you can be sure
that errors will creep into all but the most trivial of applications. Some of these errors
are programmer-induced??”they are the result of mistakes made during the development
process. Others are user-induced, caused by the end user??™s unwillingness or
inability to conform to application constraints. For example, the user might enter
12341234 when asked for an e-mail address, obviously ignoring what would otherwise
be expected as valid input.


Pages:
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289