$split_point = ' - ';
$string = 'this is my - string - and more';
How can i make a split using the second instance of $split_point and not the first one. Can I specify somehow a right to left search? Best simple approach?
Basically how do I explode from Right to Left. I want to pick up the last instance of " - ".
Result I need:
$item[0]='this is my - string'; $item[1]='and more';
and not:
$item[0]='this is my'; $item[1]='string - and more';