title: How can I implode() only one column from a multidimensional array?
body: <p>I have array in following format:</p>
  
  <pre><code>Array
  (
      [sales] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [0] =&gt; 1
                      [1] =&gt; 6
                  )
  
              [1] =&gt; Array
                  (
                      [0] =&gt; 2
                      [1] =&gt; 8
                  )
  
              [2] =&gt; Array
                  (
                      [0] =&gt; 3
                      [1] =&gt; 25
                  )
  
              [3] =&gt; Array
                  (
                      [0] =&gt; 4
                      [1] =&gt; 34
                  )
  
          )
  
  )
  </code></pre>
  
  <p>Using:</p>
  
  <pre><code>foreach ($data['sales'] as $k =&gt; $row) {
      $list = implode(",",$row);
  }
  </code></pre>
  
  <p>I get the following as output:</p>
  
  <pre><code>1,62,83,254,34
  </code></pre>
  
  <p>But I only need the second values from each subArray. The expected result needs to be:</p>
  
  <pre><code>6,8,25,34
  </code></pre>
  
  <p>How can I remove the first set of values?</p>