Array ([Hydraulics] => Array ([0] => Array ([0] => Lesson1 [1] => 1) [1] => Array ([0] => Lesson3 [1] => 1) [3] => Array ([0] => Lesson1 [1] => 1) [4] => Array ([0] => Lesson2 [1] => 1) [5] => Array ([0] => Lesson3 [1] => 1)) [Waste Water Engineering] => Array ([0] => Array ([0] => Lesson1 [1] => 1) [1] => Array ([0] => Lesson2 [1] => 1) [2] => Array ([0] => Lesson3 [1] => 0)) [RCC Structure Design] => Array ([0] => Array ([0] => Lesson1 [1] => 1) [1] => Array ([0] => Lesson2 [1] => 1) [2] => Array ([0] => Lesson3 [1] => 1)) [Irrigation] => Array ([0] => Array ([0] => Lesson1 [1] => 0) [1] => Array ([0] => Lesson2 [1] => 1) [2] => Array ([0] => Lesson3 [1] => 1)) [Plastic Blocks] => Array ([0] => Array ([0] => Lesson1 [1] => 1) [1] => Array ([0] => Lesson2 [1] => 1) [2] => Array ([0] => Lesson3 [1] => 1)))
Wenn Sie sehen, Hydraulik-Array Lektion1 erscheint 2 mal. Ich möchte den 1. Positionswert der Lektion 1 hinzufügen und andere doppelte Einträge löschen. Ich möchte, dass die Daten an Google charts.I einige Array-Teil entfernt füttern, da es zu lang war.Php Array-Wert der 1. Position hinzufügen, wenn die 0. Position
Bitte beachten Sie diesen Link von hier aus können Sie Antwort ...... bekommen http://stackoverflow.com/questions/1496682/how-to-Summe-Werte-of-the-Array-of-the-same-Taste – Shibon
Wenn Sie duplizierte Werte entfernen möchten, verwenden Sie [array_unique] (http://php.net/manual/en/ function.array-unique.php), entfernt doppelte Werte aus einem Array. – matiaslauriti
aber ich habe Wert der ersten Position addieren und dann andere Array entfernen. [0] => Lesson1 [1] => 1 [3] => Array ([0] => Lesson1 [1] => 1) –