WEBVTT

1
00:00:00.000 --> 00:00:01.150
In most cases, we'll wanna do more than
just echo a value inside of our functions.

2
00:00:01.150 --> 00:00:05.300
In order to do that, we'll need to have
the function return a value.

3
00:00:05.300 --> 00:00:08.450
This way, we're able to store data from a
function call,

4
00:00:08.450 --> 00:00:11.060
to any type of value variable.

5
00:00:11.060 --> 00:00:15.910
Those can include arrays, integers,
Booleans, so on and so forth.

6
00:00:15.910 --> 00:00:20.470
A return statement will also end the
function's execution immediately.

7
00:00:20.470 --> 00:00:24.285
This way, we can pass control back to the
line that the function was called from.

8
00:00:24.285 --> 00:00:29.820
Allowing us to return at different
locations inside our function.

9
00:00:29.820 --> 00:00:30.000
Although a function cannot return multiple
values, it can however return an array,
