title: Adding elements to the beginning of a multidimensional array and pushing the other elements to the next row PHP
body: <p>I'm trying to add elements to a multidimensional array, but I also actually want to push the other elements to the next row when I do that, but right now I'm only able to have them on the same row. Please take a look:</p>
  
  <pre><code>$array[0][0] = "one";
  $array[0][1] = "two";
  $array[1][0] = "three";
  $array[1][1] = "four";
  
  et($array); &lt;--- Function to echo an array in the table format
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>|one   |two | 
  |three |four|
  </code></pre>
  
  <p>adding an element to the beginning of the array, and echoing it out:</p>
  
  <pre><code>array_unshift($array[0] , 'zero');
  et($array);
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>|zero  |one |two| 
  |three |four|   |
  </code></pre>
  
  <p>the output I'm trying to get:</p>
  
  <pre><code>|zero |    | 
  |one  |two |  
  |three|four|  
  </code></pre>
  
  <p>Is there any way to get the element to be added to the first row, and push the other elements to the second row in a multidimensional array? If there is, please let me know. Thank you.</p>