filtering out repeats
<p>I'm creating a program which goes through data in a array and filter outs any repeats within it and then echos out anything which isn't a repeated piece of data </p>

<pre><code>for ($i = 0; $i &lt; count($urlArray); $i++) {
            for ($j = 0; $j &lt; count($urlArray); $j++) {
                if($i != $j)
                {
                    if($urlArray[$i] !== $urlArray[$j])
                    echo $urlArray[$i];
                }
            }
        }
</code></pre>

<p>I'm fairly certain there's something wrong but I can't quite spot it, any help with this would be great. </p>
