Which of the following two data structures is “better”?
array('key'=>array(1,2,3,4))
OR
array('key',array(1,2,3,4))
ie, is it better to store the array as the second element in an array of two elements or as the only element in the array with the key "key".
Suppose for my purposes, in matters of convenience, they are equivalent. I am curious if it uses more resources than another.
source
share