title: Best way to delete "column" from multidimensional array
body: <p>I have a multidimensional php array that represents a table like this</p>
  
  <pre><code>-------------
  | A | 0 | A |
  |---|---|---|
  | 0 | 0 | 0 |
  |---|---|---|
  | A | 0 | A |
  -------------
  </code></pre>
  
  <p>so the array looks like this:</p>
  
  <pre><code>array (size=3)
    0 =&gt; 
      array (size=3)
        0 =&gt; string 'A' (length=1)
        1 =&gt; string '0' (length=1)
        2 =&gt; string 'A' (length=1)
    1 =&gt; 
      array (size=3)
        0 =&gt; string '0' (length=1)
        1 =&gt; string '0' (length=1)
        2 =&gt; string '0' (length=1)
    2 =&gt; 
      array (size=3)
        0 =&gt; string 'A' (length=1)
        1 =&gt; string '0' (length=1)
        2 =&gt; string 'A' (length=1)
  </code></pre>
  
  <p>Now i want to delete the second row and the second column (this is just a simplified example btw).<br>
  Deleting the row is easy:</p>
  
  <pre><code>array_splice($array, 1, 1);
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/3702573/remove-columns-from-the-subarrays-of-a-two-dimensional-array">I found this approach</a> but was wondering if there was a simpler way (similar to the row) of deleting the column as well? Maybe transposing the array first?  </p>