WEBVTT

1
00:00:00.000 --> 00:00:00.390
it's really designed to work best with an
object oriented approach to programming.

2
00:00:00.390 --> 00:00:03.580
PHP offers different options for

3
00:00:03.580 --> 00:00:06.690
error handling when working
with procedural code.

4
00:00:06.690 --> 00:00:08.820
In most cases use errors for

5
00:00:08.820 --> 00:00:11.866
procedural code and
exceptions when working with objects.

6
00:00:11.866 --> 00:00:16.720
PHP is an exceptioned
light language by default

7
00:00:16.720 --> 00:00:20.840
meaning most situations will
give an error, not an exception.

8
00:00:21.870 --> 00:00:25.673
PHP 7 has added much more in
the way of exception handling, so

9
00:00:25.673 --> 00:00:29.715
pay attention to differences
when switching between versions.

10
00:00:29.715 --> 00:00:30.000
Both PHP 5 and PHP 7 provide a way
to turn errors into exceptions.
