I want to remove the part from this text. ACCES_ALL_AREAS_1. Now the text is like this and I want to make it like ACCES_ALL_AREAS. 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.
A_PLACE_IN_THE_ABC_3->A_PLACE_IN_THE_ABCACCES_ALL_AREAS_1->ACCES_ALL_AREAS