Don Alexander Eckford's Various Function Examples
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 function six() : a = 6
This is inside Function six() : a = 16
After function six() : a = 16
________________________________________Before 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 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 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 )________________________________________