title: Get the first letter of each word in a string
body: <p>How would I get the first letter of each word for a given string?</p>
  
  <pre><code>$string = "Community College District";
  $result = "CCD";
  </code></pre>
  
  <p>I found the javascript method but wasn't sure how to convert it to php.</p>