I would like to split a string by an array of delimiters, and also get feedback what the delimiter was.
Example:
$mystring = 'test+string|and|hello+word';
$result = preg_split('/\+,|/+', $mystring);
I would like an array as return with something like this:
$return[0] = array('test','+');
$return[1] = array('string','|');
thnx in advance