neu anordnen, php array Schlüssel
habe ich dieses array:
Array
(
[15] => 13.1
[16] => Mark one answer
[19] => You see a car on the hard shoulder of a motorway with a HELP pennant displayed. This means the driver is most likely to be
[20] => a disabled person first aid trained
[21] => a foreign visitor
[22] => a rescue patrol person
[25] => DES s15, HC r278);
Wie bekomme ich es zum Sortieren der Tasten von 0?
um dies zu erhalten: ich weiß, es ist eine Funktion, aber mein Kopf ist verbrannt, die Sortieren Funktion nicht, die zu meinen Anforderungen passen, da Sie neu anordnen Werte, und ich muss Sie konserviert werden.
Array
(
[0] => 13.1
[1] => Mark one answer
[2] => You see a car on the hard shoulder of a motorway with a HELP pennant displayed. This means the driver is most likely to be
[3] => a disabled person first aid trained
[4] => a foreign visitor
[5] => a rescue patrol person
[6] => DES s15, HC r278);
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich glaube, Sie suchen nach array_values
$arr = array_values($arr);
trim
angewendet wurde =)array_map('trim', ...)
auf die max.