Create multi-dimensional array,
<p>I have code like this   </p>

<pre><code>$assoc = ['name','lastname','pesel'];
          $inputs = ['a', 'a', 'a', 'a', 'b', 'b', 'b', 'b',];
          $counter = 0;
          $internalcounter = 0;
          $zero = 0;
          $content = array();
          while ($counter &lt; sizeof($inputs))
          {
              if($internalcounter == sizeof($assoc))
              {
                  $counter++;
                  $internalcounter = 0;


              }
              else
              {
                  array_push($content, $inputs[$counter]);
                  $counter++;
                  $internalcounter++;
              }


          }
          var_dump($content);
</code></pre>

<p>It created array who looks</p>

<pre><code>`array(6) { [0] =&gt; string(1) "a" [1] =&gt; string(1) "a" [2] =&gt; string(1) "a" [3] =&gt; string(1) "b" [4] =&gt; string(1) "b" [5] =&gt; string(1) "b" }` 
</code></pre>

<p>But I want create multi-dimensional array</p>

<pre><code>Array ( [0] =&gt; Array ( [0] =&gt; "a"  [1] =&gt; "a"  [2] =&gt; "a"  ) [1] =&gt; Array ( [0] =&gt; "b" [1] =&gt; "b" [2] =&gt; "b" )  )
</code></pre>

<p>How to add next array in $content ? </p>
