Which of the following two data structures is “better”?
array('key'=>array(1,2,3,4))
OR:
array('key',array(1,2,3,4))
i.e., is it better to store the array as the second element in a two element array, or as the single element in an array with the key, ‘key’.
Assume that for my purposes, in matters of convenience, they are equivalent. I am only curious whether one uses more resources than the other.
You use whichever one is appropriate for what you’re trying to store.
If the key relates to the array of values and its unique then use key/value.
Worrying about resources used in this kind of situation are micro-optimizations and an irrelevant distraction.