PHP, how can I produce a list of unique numbers?
<p>I have some numbers which will be part of an sql query, like this...</p>

<pre><code>152258, 152258, 152258, 152258, 152261, 152261, 152261, 152261, 152261, 152270, 
152270, 152270, 152287, 152287, 152287, 152287
</code></pre>

<p>My query is quite complex and the list is quite long and I need to produce a unique list of numbers, can I do this with a regex?</p>

<p>If not how ?</p>
