title: php filling jagged array 3 columns 3 rows
body: <p>I have this array (my results from database)</p>
  
  <pre><code>$nums = array("one","two","three",....,"nine");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$nums = array("one","two","three","four");
  </code></pre>
  
  <p>and I want to fill a jagged array with these values.
  My jagged array should be like this :</p>
  
  <pre><code>$kb = [
     ['one','two','three'],
     ['four','five','six'],
     ['seven','eight','nine']
  ];
  </code></pre>
  
  <p>or </p>
  
  <pre><code>$kb = [
     ['one','two','three'],
     ['four',' ',' ']
  ];
  </code></pre>
  
  <p>How can I do it?</p>