3 ms·
But in PHP, there's technically no difference between a list and a set Sure there is. In a set, you can't have repeated values. PHP arrays can. Of course, you
by icebraining 15y ago
But in PHP, there's technically no difference between a list and a set
Sure there is. In a set, you can't have repeated values. PHP arrays can. Of course, you can implement a set using a PHP array.
- lrobb 15y agoI'm well aware of the difference between a set and a list. My point, which was apparently lost, is that the underlying implementation of these structures is the same in PHP.