title: check if values of an array is unique. if so randomize array
body: <p>I have an array like this</p>
  
  <pre><code>0 =&gt; string '' (length=0)
  1 =&gt; string 'nameMiddle' (length=10)
  2 =&gt; string 'dsa' (length=3)
  3 =&gt; string '' (length=0)
  4 =&gt; string 'phoneFirst' (length=10)
  5 =&gt; string 'addressStreet' (length=13)
  6 =&gt; string 'addressCity' (length=11)
  7 =&gt; string 'addressState' (length=12)
  8 =&gt; string 'addressZip' (length=10)
  9 =&gt; string 'status' (length=6)
  10 =&gt; string 'gender' (length=6)
  11 =&gt; string 'dateOfBirth' (length=11)
  12 =&gt; string 'numberOfDependents' (length=18)
  13 =&gt; string 'salary' (length=6)
  14 =&gt; string 'startDate' (length=9)
  15 =&gt; string 'ltdClass' (length=8)
  16 =&gt; string 'deductionMedical' (length=16)
  17 =&gt; string 'deductionDental' (length=15)
  18 =&gt; string 'deductionVision' (length=15)
  19 =&gt; string 'suppLyfCost' (length=11)
  20 =&gt; string 'stdCost' (length=7)
  21 =&gt; string 'effectiveDate' (length=13)
  </code></pre>
  
  <p>These values would eventually be keys using array_combine but I cannot have the same key on an array_combine. How can I check if the array has the same value if so how can I make the value unique into like this</p>
  
  <pre><code>0 =&gt; string '0'
  3 =&gt; string '3' 
  </code></pre>
  
  <p>thanks</p>