title: How to exclude some repeated values from given array and display it in select tag?
body: <p>I want to remove that 2 <code>Justin Bieber</code> elements from this array and display it in select tag.</p>
  
  <p>This is the code I have:</p>
  
  <pre><code>&lt;?php
  $arr = array('Dream Theater', 'Animals as Leaders', 'Chimp Spanner', 'Periphery', 'Linkin Park', 'Metallica', 'Justin Bieber', 'Slipknot', 'Justin Bieber');
  echo "&lt;pre&gt;";
  print_r($arr);
  ?&gt;
  &lt;select&gt;
    &lt;?php foreach ($arr as $value) {?&gt;
        &lt;option&gt;&lt;?php echo $value?&gt;&lt;/option&gt; //I do not want to echo "Justin Bieber" here
    &lt;?php }?&gt;
  &lt;/select&gt;
  &lt;?php
  die;
  </code></pre>