Get the string after a string from a string

what's the fastest way to get only the important_stuff part from a string like this:

bla-bla_delimiter_important_stuff

_delimiter_ is always there, but the rest of the string can change.


Solution 1:

here:

$arr = explode('delimeter', $initialString);
$important = $arr[1];

Solution 2:

$result = end(explode('_delimiter_', 'bla-bla_delimiter_important_stuff'));