Hallo,
ich such eine Möglichkeit, mir den Index des gerade hinzugefügten Array-Elementes zurück geben soll lassen.
-
Man lese die Dokumentation
-
Man finde: " Returns the new number of elements in the array."
-
Man schließe daraus:
$foo = array_push(...);
$foo -1 == größter Array index
Gruß,
Severin
--
They that can give up essential liberty to obtain a little temporary safty deserve neither liberty nor safty.
-- Benjamin Franklin
They that can give up essential liberty to obtain a little temporary safty deserve neither liberty nor safty.
-- Benjamin Franklin