phpbar.de logo

Mailinglisten-Archive

[php] Zweidimensionales Array unique machen.

[php] Zweidimensionales Array unique machen.

Hendrik gamma32 at gmail.com
Die Feb 13 14:06:26 CET 2007


Hallo Zusammen,

Ich möchte gerne ein Zweidimensionales Array einzigartig(unique) machen.
Das Array sieht ungefähr so aus:

Array
(
   [11] => Array
        (
            [0] =>
            [1] =>
            [2] =>
            [3] =>
            [4] =>
            [5] =>
            [6] =>
            [7] =>
            [8] =>
        )

   [12] => Array
        (
            [0] =>
            [1] =>
            [2] =>
            [3] =>
            [4] =>
            [5] =>
            [6] =>
            [7] =>
            [8] =>
        )

    [13] => Array
        (
            [0] => 1
            [1] => 1
            [2] => 1
            [3] => 1
            [4] => 1
            [5] => 1
            [6] => 1
            [7] =>
            [8] => 1
        )

    [14] => Array
        (
            [0] =>
            [1] =>
            [2] =>
            [3] =>
            [4] =>
            [5] =>
            [6] =>
            [7] => 1
            [8] =>
        )

)
Ich möchte halt nur dies hier rausbekommen.

Array
(
   [1] => Array
        (
            [0] =>
            [1] =>
            [2] =>
            [3] =>
            [4] =>
            [5] =>
            [6] =>
            [7] =>
            [8] =>
        )

    [2] => Array
        (
            [0] => 1
            [1] => 1
            [2] => 1
            [3] => 1
            [4] => 1
            [5] => 1
            [6] => 1
            [7] =>
            [8] => 1
        )

    [3] => Array
        (
            [0] =>
            [1] =>
            [2] =>
            [3] =>
            [4] =>
            [5] =>
            [6] =>
            [7] => 1
            [8] =>
        )

)

Hat da jemand eine Idee
-- 
Grüße

Hendrik Still

php::bar PHP Wiki   -   Listenarchive