PHP5 exception handling mechanism [1] - this article index

xiaoxiao2021-03-06  88

Author: Matt Zandstra

Translation: haohappy 04-8-20

Haohappy@msn.com Readers in this article

Introduction

Error processing before PHP5

- Use Die () or Trigger_ERROR ()

- Return the error mark

- Use PEAR to handle errors

PHP5 exception mechanism

- Use throw keywords

-Try-catch statement

- Handling multiple errors

- Customization type

- Unusually transmitted

- More Abnormal Information

to sum up

About author

Readers facing this article

This article is for programmers who wish to understand the PHP5 exception handling mechanism. You need to have object-oriented programming and PHP foundations.

Introduction

This article focuses on various errors, where you will be able to see a variety of error handling methods in PHP4, PHP5. PHP5 introduces an "exception mechanism" - a new mechanism for incorrect processing in an object system. Just as you are about to see, "Abnormal" provides a lot of advanced features than traditional error handling mechanisms.

转载请注明原文地址:https://www.9cbs.com/read-122711.html

New Post(0)