$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
You may use strrev to reverse the string, and then reverse the results back:
$split_point = ' - '; $string = 'this is my - string - and more'; $result = array_map('strrev', explode($split_point, strrev($string)));
Not sure if this is the best solution though.