I'm wondering if all PHP arrays have to have key
s for their value
s? I don't think they do, and so my next question is, does the key
for each value
automatically become it's position in the array (0-based indexing), or else does the value
itself become the key
?
Perhaps the value simply doesn't have a key... curious, because I can't delete an element from an array inside a foreach
loop if it doesn't have a key.