soll in "AB", "4", "750", "i" gesplittet werden
preg_match_all ist Dein Freund:
$str = "AB4 750i";
preg_match_all("/([a-zA-Z]+|\d+)/", $str, $matches);
while(list($key,$val)=each($matches)) {
echo $key.' = '.$val.'<br>';
while(list($key2,$val2)=each($val)) {
echo $key2.' = '.$val2.'<br>';
}
}
Hilft Dir das?
Ciao,
Andreas