Skip to content

Glossary: PHP Basics

try

Also written: try/catch

A statement that wraps risky code so that, if it throws an exception, PHP jumps to the matching `catch` block instead of stopping.

Where the book teaches it

Related terms

catchfinallyexception