I want to remove string from a string from end.
for example I have a php string variable "SomeText1|SomeText2|SomeText3|SomeText4|SomeText5|SomeText6" and i want value "SomeText1|SomeText2|SomeText3|SomeText4|SomeText5" in PHP.
I tried using strrpos() to get the last occurrence of "|" i got index now i am stuck how to process further
Every time i want string excluding the last occurrence of "|" followed by the text.
|, pop the last value off that array, implode on|again.... not rocket science.... just 3 lines of code, and no mathematics required