Kaylyn's Examples of How Functions Work

Demonstrates how variables may be passed to, and returned from, functions.

________________________________________

This is inside Function one()

________________________________________

This is inside Function two() a = 2

________________________________________

Prior to function three() : a = 3

This is inside Function three() : a = 3

After going to function three() : a = 3

________________________________________

Before function four() : a = 4

This is inside Function four() : a = 14

After going to function four() : a = 4

________________________________________

Before function five() : a = 5

This is inside Function five() : a = 15

Returned from function five() : a = 15

________________________________________

Before to function six() : a = 6

This is inside Function six() : a = 16

After function six() : a = 16

________________________________________

Before to function seven

Array
(
)

This is inside Function seven()

After function seven

Array
(
    [0] => 1
    [1] => 2
    [2] => 3
    [3] => 4
    [4] => 5
    [5] => 6
    [6] => 7
    [7] => 8
    [8] => 9
)
________________________________________

Before to function eight

Array
(
)

This is inside Function eight()

After function eight

Array
(
    [0] => 1
    [1] => 2
    [2] => 3
    [3] => 4
    [4] => 5
    [5] => 6
    [6] => 7
    [7] => 8
    [8] => 9
)
________________________________________

Before to function eight

Array
(
)

This is inside Function eight()

After function eight

Array
(
    [0] => 1
    [1] => 2
    [2] => 3
    [3] => 4
    [4] => 5
    [5] => 6
    [6] => 7
    [7] => 8
    [8] => 9
)
________________________________________