Create a 3D array from a list
<p>I have the following list:</p>

<blockquote>
  <p>1945/01/05    BA  87  34  1   59  50<br>
  1945/01/05    CA  18  17  45  49  82<br>
  1945/01/13    BA  6   66  1   16  48<br>
  1945/01/13    CA  40  60  32  50  80</p>
</blockquote>

<p>and so on....                                          </p>

<p>I want to arrange them as an array like the following:</p>

<pre><code>$array['BA'][0][0] = 87;
$array['BA'][0][1] = 34;
$array['BA'][0][2] = 1;
$array['BA'][0][3] = 59;
$array['BA'][0][4] = 50;

$array['CA'][0][0] = 18;
$array['CA'][0][1] = 17;
$array['CA'][0][2] = 45;
$array['CA'][0][3] = 49;
$array['CA'][0][4] = 82;

$array['BA'][1][0] = 6;
$array['BA'][1][1] = 66;
$array['BA'][1][2] = 1;
$array['BA'][1][3] = 16;
$array['BA'][1][4] = 48;

$array['CA'][1][0] = 48;
$array['CA'][1][1] = 60;
$array['CA'][1][2] = 32;
$array['CA'][1][3] = 50;
$array['CA'][1][4] = 80;
</code></pre>

<p>I know that I can use preg_split('/\s+/', $list); to create an array, but how can I create a 3D Array from this list?</p>

<p>Thank you for your help</p>
