troubleshooting Question

Organize arrays with multi keys

Avatar of Pedro Chagas
Pedro ChagasFlag for Portugal asked on
PHP
6 Comments3 Solutions249 ViewsLast Modified:
Hi E's I need to organize a array like:
I have this arrays with multi keys:
Array
(
    [1] => Array
        (
            [0] => js/jquery.cycle.all.min.js
            [1] => __MACOSX/._png-slideshow.htm
            [2] => __MACOSX/._png-slideshow.css
            [3] => images/edge-holders.png
            [4] => images/.DS_Store
            [5] => images/slide-one.jpg
            [6] => images/billboard-bg.jpg
            [7] => images/slide-two.jpg
        )

    [0] => Array
        (
            [0] => png-slideshow.htm
            [1] => png-slideshow.css
        )

    [2] => Array
        (
            [0] => __MACOSX/js/._jquery.cycle.all.min.js
            [1] => __MACOSX/images/._.DS_Store
            [2] => __MACOSX/images/._edge-holders.png
            [3] => __MACOSX/images/._billboard-bg.jpg
            [4] => __MACOSX/images/._slide-one.jpg
            [5] => __MACOSX/images/._slide-two.jpg
        )

)

how I put in this way:

 Array
        (
            [0] => png-slideshow.htm
            [1] => png-slideshow.css
            [2] => js/jquery.cycle.all.min.js
            [3] => __MACOSX/._png-slideshow.htm
            [4] => __MACOSX/._png-slideshow.css
            [5] => images/edge-holders.png
            [6] => images/.DS_Store
            [7] => images/slide-one.jpg
            [8] => images/billboard-bg.jpg
            [9] => images/slide-two.jpg
            [10] => __MACOSX/js/._jquery.cycle.all.min.js
            [11] => __MACOSX/images/._.DS_Store
            [12] => __MACOSX/images/._edge-holders.png
            [13] => __MACOSX/images/._billboard-bg.jpg
            [14] => __MACOSX/images/._slide-one.jpg
            [15] => __MACOSX/images/._slide-two.jpg
        )

Note: In this case I have 3 multi keys, but I can have less or more.

The best regards, JC
         
ASKER CERTIFIED SOLUTION
Derokorian

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros