Y
Hacker News
new
|
ask
|
show
|
jobs
by
mappu
3595 days ago
...which is O(n). Unless the set is trivially small, better to coerce your data to key types and use array_key_exists().
1 comments
gravypod
3595 days ago
I never said it was good, but it exists. Most of my PHP code utilizes kv arrays everywhere possible.
link