title: PHP - Extract characters before and after first space
body: <p>Can't seem to get this one.  I would like to get the first 2 characters from the word before the first space and first 3 characters after the first space.</p>
  
  <p>Not sure if break up the word in [0], [1] would work, but regex might work.</p>
  
  <pre><code>$string = "Bobby Ryan";
  $output = 'BoRya';
  </code></pre>
  
  <p>Thanks</p>