trying to get unique values
<p>I've got the following code</p>

<pre><code>foreach($reportsResult-&gt;getRecords() as $key =&gt; $reportRecord){
    $input = array($reportRecord-&gt;getField('Term').' - '.$reportRecord-&gt;getField('Year'));
    $result = array_unique($input);
    print_r($result);
}
</code></pre>

<p>which is producing output like</p>

<pre><code>Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Winter - 2010 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Spring - 2011 )
Array ( [0] =&gt; Summer - 2011 )
Array ( [0] =&gt; Summer - 2011 )
Array ( [0] =&gt; Summer - 2011 )
Array ( [0] =&gt; Summer - 2011 )
Array ( [0] =&gt; Summer - 2011 )
Array ( [0] =&gt; Summer - 2011 )
Array ( [0] =&gt; Summer - 2011 )
</code></pre>

<p>What I would like to do, is just get the unique values, in this case Winter - 2010, Spring 2011, Summer 2011.</p>

<p>Could someone advise me how to do this, I thought <code>array_unique</code> might be the solution, but I guess its the way the way the values are stored in the array?</p>
