How to explode only on the last occurring delimiter?
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.