title: php explode to split and combine reverse string
body: <pre><code>text left - text right
  </code></pre>
  
  <p>How to swap right to left using php? str pos is not so good because the pattern is not always fix. It could be <code>somethingleft-somethingright</code> or <code>more left text here - right</code> </p>
  
  <p>The result that I want should look like <code>text right - text left</code></p>
  
  <p>tried explode() but it isn't always single character at the left or right side.</p>