title: Get only values of array and make it new $key => $value in another array
body: <p>I have an array result from a loop like this</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [value] =&gt; JKTOF [amount] =&gt; 3 ) [1] =&gt; Array ( [value] =&gt; JKTVZ [amount] =&gt; 1 ) [2] =&gt; Array ( [value] =&gt; JKTOF [amount] =&gt; 5 ) [3] =&gt; Array ( [value] =&gt; JKTDO [amount] =&gt; 1 ) [4] =&gt; Array ( [value] =&gt; JKTOF [amount] =&gt; 6 ) [5] =&gt; Array ( [value] =&gt; JKTWF [amount] =&gt; 1 ) [6] =&gt; Array ( [value] =&gt; JKTML [amount] =&gt; 1 ) [7] =&gt; Array ( [value] =&gt; JKTOG [amount] =&gt; 1 ) [8] =&gt; Array ( [value] =&gt; JKTOF [amount] =&gt; 1 ) [9] =&gt; Array ( [value] =&gt; JKTDO [amount] =&gt; 1 ) [10] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 1 ) [11] =&gt; Array ( [value] =&gt; JKTCC [amount] =&gt; 1 ) [12] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 2 ) [13] =&gt; Array ( [value] =&gt; JKTCH [amount] =&gt; 1 ) [14] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 3 ) [15] =&gt; Array ( [value] =&gt; TKGKO [amount] =&gt; 1 ) [16] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 6 ) [17] =&gt; Array ( [value] =&gt; DPSOC [amount] =&gt; 1 ) [18] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 7 ) [19] =&gt; Array ( [value] =&gt; MELKK [amount] =&gt; 1 ) [20] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 12 ) [21] =&gt; Array ( [value] =&gt; DPSOC [amount] =&gt; 1 ) [22] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 9 ) [23] =&gt; Array ( [value] =&gt; JKTVZ [amount] =&gt; 1 ) [24] =&gt; Array ( [value] =&gt; JKTOC [amount] =&gt; 5 ) [25] =&gt; Array ( [value] =&gt; JKTOG [amount] =&gt; 1 ) [26] =&gt; Array ( [value] =&gt; JKTDB [amount] =&gt; 1 ) [27] =&gt; Array ( [value] =&gt; MESTS [amount] =&gt; 1 ) [28] =&gt; Array ( [value] =&gt; CGKGF [amount] =&gt; 1 ) [29] =&gt; Array ( [value] =&gt; JKTFS [amount] =&gt; 1 ) [30] =&gt; Array ( [value] =&gt; CGKGF [amount] =&gt; 1 ) [31] =&gt; Array ( [value] =&gt; JKTGF [amount] =&gt; 1 ) [32] =&gt; Array ( [value] =&gt; CGKGF [amount] =&gt; 1 ) [33] =&gt; Array ( [value] =&gt; JKTOG [amount] =&gt; 1 ) [34] =&gt; Array ( [value] =&gt; CGKGF [amount] =&gt; 1 ) [35] =&gt; Array ( [value] =&gt; JKTGF [amount] =&gt; 2 ) [36] =&gt; Array ( [value] =&gt; JKTCG [amount] =&gt; 1 ) [37] =&gt; Array ( [value] =&gt; JKTDI [amount] =&gt; 1 ) [38] =&gt; Array ( [value] =&gt; JKTMQ [amount] =&gt; 1 ) [39] =&gt; Array ( [value] =&gt; JKTOG [amount] =&gt; 1 ) [40] =&gt; Array ( [value] =&gt; JKTGF [amount] =&gt; 1 ) )
  </code></pre>
  
  <p>I want my new array to be</p>
  
  <pre><code>Array ( JKTOF =&gt; 3 JKTVZ =&gt;1 ....)
  </code></pre>
  
  <p>I've tried to loop that array with </p>
  
  <pre><code>$simple_unit =[];
          foreach ($unit_result as $row){
              $simple_unit[] = $row[0];
          }
  </code></pre>
  
  <p>But did'nt work as I expected. I think that I really don't know yet about looping an array.</p>
  
  <p>I really appreciate if you give the answer with brief explanation about looping an array.</p>