Hi Bademeister!
Mit preg_split hast du eben in jedem zweiten Arrayeintrag das jeweilige Trennzeichen.
hier muss man ein bissi aufpassen. Da Andre PREG_SPLIT_NO_EMPTY gesetzt hat, wird das nicht immer stimmen.
Sehr wichtiger Hinweis. Danke!
In diesem Fall muss dieses Flag natürlich raus und in der for-Schleife entsprechend auf Leerheit™ geprüft werden.
MfG H☼psel
--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)