title: Unset a column in a multidimensional array
body: <p>I have this array $output which looks like this:</p>
  <pre><code>Array(
      [0] =&gt; Array(
          [0] =&gt; 1a
          [1] =&gt; 1b
          [2] =&gt; 1c
      )
      [1] =&gt; Array(
          [0] =&gt; 2a
          [1] =&gt; 2b
          [2] =&gt; 2c
      )
      [2] =&gt; Array(
          [0] =&gt; 3a
          [1] =&gt; 3b
          [2] =&gt; 3c
      )
      [3] =&gt; Array(
          [0] =&gt; 4a
          [1] =&gt; 4b
          [2] =&gt; 4c
      )
  )
  </code></pre>
  <p>and so on...</p>
  <p>When I want to remove the second element I just use:</p>
  <pre><code>$output = unset($output[1]);
  </code></pre>
  <p>to get the following:</p>
  <pre><code>Array(
      [0] =&gt; Array(
          [0] =&gt; 1a
          [1] =&gt; 1b
          [2] =&gt; 1c
      )
      [1] =&gt; Array(
          [0] =&gt; 3a
          [1] =&gt; 3b
          [2] =&gt; 3c
      )
      [2] =&gt; Array(
          [0] =&gt; 4a
          [1] =&gt; 4b
          [2] =&gt; 4c
      )
  )
  </code></pre>
  <p>My question is how to remove every second element of every element in the array ([0][1], [1][1], [2][1], [3][1] ,...) to get the following:</p>
  <pre><code>Array(
      [0] =&gt; Array(
          [0] =&gt; 1a
          [1] =&gt; 1c
      )
      [1] =&gt; Array(
          [0] =&gt; 2a
          [1] =&gt; 2c
      )
      [2] =&gt; Array(
          [0] =&gt; 3a
          [1] =&gt; 3c
      )
      [3] =&gt; Array(
          [0] =&gt; 4a
          [1] =&gt; 4c
      )
  )
  </code></pre>