Jump to content

Combining array


happypete

Recommended Posts

Hi,

 

I'm trying to combine an array (if that's the right way to describe it..??)

 

I have this

Array
(
    [0] => Array
        (
            [0] => 2013-07-14
            [1] => 2013-07-15
            [2] => 2013-07-16
            [3] => 2013-07-17
        )

    [1] => Array
        (
            [0] => 2013-08-02
            [1] => 2013-08-03
            [2] => 2013-08-04
            [3] => 2013-08-05
            [4] => 2013-08-06
        )

    [2] => Array
        (
            [0] => 2013-10-06
            [1] => 2013-10-07
            [2] => 2013-10-08
            [3] => 2013-10-09
        )

)

and i want this:

Array
(
   [0] => 2013-07-14
   [1] => 2013-07-15
   [2] => 2013-07-16
   [3] => 2013-07-17
   [4] => 2013-08-02
   [5] => 2013-08-03
   [6] => 2013-08-04
   [7] => 2013-08-05
   [8] => 2013-08-06
   [9] => 2013-10-06
   [10] => 2013-10-07
   [11] => 2013-10-08
   [12] => 2013-10-09
)
Link to comment
https://forums.phpfreaks.com/topic/286665-combining-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.