title: PHP RegEx split to 2D array?
body: <p>Is it possible to convert the following string in to an array with PHP and preg_match_all, e.g;</p>
  
  <p>The string will always be one character and a number followed by a space.</p>
  
  <pre><code>String: "C1 X2 B10"
  
  $array[0][type]=&gt;"C"
  
  $array[0][number]=&gt;1
  
  $array[1][type]=&gt;"X"
  
  $array[1][number]=&gt;2
  
  $array[2][type]=&gt;"B"
  
  $array[2][number]=&gt;10
  </code></pre>