Je voudrais diviser une chaîne par un tableau de délimiteurs, et également obtenir des informations sur le délimiteur.Séparer une chaîne et obtenir un délimiteur en retour ainsi
Exemple:
$mystring = 'test+string|and|hello+word';
$result = preg_split('/\+,|/+', $mystring);
Je voudrais un tableau en retour avec quelque chose comme ça:
$return[0] = array('test','+');
$return[1] = array('string','|');
thnx à l'avance
thnx Mark (pour la réponse et la réponse rapide)! – Bokw