title: Array - Remove Duplicate/No Key
body: <p>Trying to learn how to work with Arrays, merging (or removing duplicate).  Basically this: The database will have the actual data and I have another array that will give me all the result I expected to have.</p>
  
  <p><strong>Database:</strong></p>
  
  <p><code>V1</code>, <code>V2</code>, <code>V5</code>, <code>V6</code>, <code>V7</code>, <code>V10</code></p>
  
  <p><strong>Custom Array:</strong></p>
  
  <p><code>V1</code>, <code>V2</code>, <code>V3</code>, <code>V4</code>, <code>V5</code>, <code>V6</code>, <code>V7</code>, <code>V8</code>, <code>V9</code>, <code>V10</code></p>
  
  <p>I would like to have the output to tell me:</p>
  
  <p><code>V3</code>, <code>V4</code>, <code>V8</code>, <code>V9</code></p>
  
  <p>But I keep getting only <code>V1</code> as the output. I must've missed some vital information somewhere.</p>
  
  <p><strong>Example code I have:</strong></p>
  
  <pre><code>for($x = 0; $x &lt; 1201; $x++){ $a[] = array('VFL'.$x); }
              $MFSQL = 'SELECT SCPlayer FROM SC'.$S;
                  $MFSQL .= ' WHERE SCSnap = (SELECT MAX(DSSnap) FROM DataSnap WHERE DSServer = '.$S.')';
                  $MFSQL .= ' AND (SCPlayer REGEXP "VFL[0-9]{1,4}")';
                  $MFSQL .= ' ORDER BY SCPlayer';
              $Re = $ZD -&gt; query($MFSQL);
              while($Ro = $ZD -&gt; fetch_assoc($Re)){ $b[] = array($Ro['SCPlayer']); }
              $c = array_values(array_unique($a+$b));
              echo json_encode($c);
  </code></pre>
  
  <p>Any help/insight appreciated!</p>