How to store things in a set in PHP?
<p>How do I write code such that I can put things in a set and only the unique entries are kept?</p>

<pre><code>for($i=0;$i&lt;$count;$i++) {
  $variable-&gt;put($some_object)
}
</code></pre>
