PHP array with distinct elements (like Python set)
arrays, php
Solution
Nope. You could fake it by using an associative array where the keys are the elements in the "set" and the values are ignored.
Problem
Is there a version of the PHP array class where all the elements must be distinct like, for instance, sets in Python?