درس قبلی
Multi-Catch Exception Handling

Multi-Catch Exception Handling

Multi-Catch Exception Handling

قسمت 4
درس بعدی

درباره این درس

Often, you'll find yourself catching and responding to multiple exception types with the exact same logic. In PHP 7.1, however, you may now remove this duplication by separating each exception type with a pipe (catch (ChargeFailed | InsufficientFunds $e)).
دیدگاه های کاربران

× در حال پاسخ به: