title: How to remove values from an array if occurring more than one time?
body: <p>I need to remove values from an array that occur more than one time in the array.</p>
  <p>For example:</p>
  <pre><code>$value = array(10,10,5,8);
  </code></pre>
  <p>I need this result:</p>
  <pre><code>$value = array(5,8);
  </code></pre>
  <p>Is there any in-built function in php?</p>
  <p>I tried this, but this will not return my expected result:</p>
  <pre><code>$unique = array_unique($value);
  $dupes = array_diff_key($value, $unique);
  </code></pre>