Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
story
0 points
mappu
9y ago
0 comments
Share
...which is O(n). Unless the set is trivially small, better to coerce your data to key types and use array_key_exists().
0 comments
default
newest
oldest
gravypod
9y ago
I never said it was good, but it exists. Most of my PHP code utilizes kv arrays everywhere possible.
j
/
k
navigate · click thread line to collapse