@@Pit
Ist man hier nicht mit einem regulären Ausdruch am besten dran?
$s1 = 'Peter, Tom, Chris, Hans';
$s2 = preg_replace('/([, ]*)([^,]+)/', '$1\'$2\'', $s1);
LLAP 🖖
--
“When UX doesn’t consider all users, shouldn’t it be known as ‘Some User Experience’ or... SUX? #a11y” —Billy Gregory
“When UX doesn’t consider all users, shouldn’t it be known as ‘Some User Experience’ or... SUX? #a11y” —Billy Gregory