title: Split strings in php and combine them again without last element (explode)
body: <p>I want to remove the part from this text. <code>ACCES_ALL_AREAS_1</code>. Now the text is like this and I want to make it like <code>ACCES_ALL_AREAS</code>. I used PHP explode with for loops. That didn't work. And also the word count is not static. Not always 3 as above example.</p>
  
  <ul>
  <li><code>A_PLACE_IN_THE_ABC_3</code>    ->   <code>A_PLACE_IN_THE_ABC</code> </li>
  <li><code>ACCES_ALL_AREAS_1</code>       ->   <code>ACCES_ALL_AREAS</code></li>
  </ul>