title: Using PHP how can I convert this string variable into another form?
body: <p>I have a huge list of <code>city, country</code> that I want to display them in a compact form of the country.</p>
  
  <p>So for example I have the following <strong>variable</strong></p>
  
  <pre><code>Hallands, Sweden
  </code></pre>
  
  <p>but how can I show it like here meaning after the <code>, and space</code> keep the two letters and capitalize.</p>
  
  <pre><code>Hallands, SW ?
  </code></pre>