Hi Paul!
habe ein array aus dem ich einige elemente lösche (unset($wert[$i]).
Nun möchte ich die übrig bleibenden Elemente aufrücken lassen. Also das die Zählung der Elemente ohne Lücke weiter geht. Wie mache ich das?
Mit array_splice().
Der Aufruf von unset() wird dann auch überflüssig.
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:)