I have a string:
buynaturallesunfloweroil1ltrat78rupees
now this string have two occurrences of at
. I want to split the string at
getor
last occurrence of at
.`
Some strings can be like buynaturallesunfloweroilget1ltrat78rupees
buynat
urallesunfloweroil1ltrat
78rupees.
I want to split the string such that:
Arr[0] = buynaturallesunfloweroil1ltr
Arr[1] = 78rupees
Basically I have to split the string at last occurence of at
. I am not very good at preg_split
.
Thanks in advance.