3 ms·
Ha yeah that's been my experience at a smaller scale so far. Why are "arrays" actually key value sets? Not at all intuitive. I figured that out when I used arra
by lakechfoma 9y ago
Ha yeah that's been my experience at a smaller scale so far. Why are "arrays" actually key value sets? Not at all intuitive. I figured that out when I used array_unique() only to discover that some index values had gone missing. Of course that function provides no option to "treat $array like an actual array". I found a solution of array_keys(array_flip()) which I read also happens to be faster than array_unique(). Wat.