3 ms·
Is array_is_map(), etc, planned? Or is the pure php equivalent fast enough for those?
by tyingq 6y ago
Is array_is_map(), etc, planned? Or is the pure php equivalent fast enough for those?
- duskwuff 6y agoYou mean `!array_is_list()`? As far as PHP is concerned, a list is a subset of arrays where the keys are ordered integers starting at zero. Any array that doesn't fit this pattern could be considered a "map" -- there's no middle ground.