3 ms·Dang, just like PHP (no built in set)by bpicolo 10y agoDang, just like PHP (no built in set)gravypod 10y agoAnd yet there is a generic in array function.mappu 10y ago...which is O(n). Unless the set is trivially small, better to coerce your data to key types and use array_key_exists().gravypod 10y agoI never said it was good, but it exists. Most of my PHP code utilizes kv arrays everywhere possible.