06g1_Foreach Loop

Conditional form, the elements are: "foreach (myKey = myValue) { action }". So.

0 equals: ark
1 equals: bark
2 equals: cark
3 equals: dark
4 equals: fark

Again...

god DAMN, these syntactical details. I am not supposed to put array calls inside of double quotes. But here, they DO work inside of double quotes:

ark
bark

so what gives?

Again:

0 equals: ark
1 equals: bark
2 equals: cark
3 equals: dark
4 equals: fark

Again:

1 equals: ark
2 equals: cark
3 equals: doogie
4 equals: fark
5 equals: gark
6 equals: hark

Again,

with variable code in double quotes, and it works. So is this regarding later exercises which will depend on not having this stuff inside them?

0 equals cone
1 equals bone
2 equals fone
3 equals gonad
4 equals hone

video 8: Adding values

don't have to be 'hard-coded into the array' which I take it means within the actual line of code of the array. But each additional value has to be specified, one by one - so how is this useful? For interim 'patching up' of arrays when one doesn't want to rewrite code more extensively?

1 equals dog
2 equals bark
3 equals tree
4 equals hydrant
5 equals fool
6 equals pissedOn

video 9: Associative (keyed) array with Foreach 'n Concat:

aaoh equals aark
baoh equals baark
caoh equals caark
daoh equals daark
city equals ditty