Arrays
Populate (fill) an index array with numbers
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 [8] => 9 [9] => tedd [10] => 1 [11] => 1.5 )Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
[5] => 6
[6] => 7
[7] => 8
[8] => 9
[9] => tedd
[10] => 1
[11] => 1.5
)
Populate an index array with days of the week
Array
(
[0] => Sun
[1] => Mon
[2] => Tue
[3] => Wen
[4] => Thu
[5] => Fri
[6] => Sat
)
Populate an associative array with book data
Array
(
[title] => The Grapes of Wrath
[author] => John Steinbeck
[published] => 1939
)
Populate a multidimensional associative array with book data
Array
(
[0] => Array
(
[title] => The Grapes of Wrath
[author] => John Steinbeck
[published] => 1939
)
[1] => Array
(
[title] => The Trial
[author] => Frances Kafka
[published] => 1925
)
[2] => Array
(
[title] => The Hobit
[author] => J. R. Tolkien
[published] => 1937
)
[3] => Array
(
[title] => Tale of Two Cities
[author] => Charles Dickens
[published] => 1859
)
)