Array help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have an variable that contains an array like this:

   [0] => Array(
            [0] => Array([0] => {3 3})
            [1] => Array([0] => 3)
        )


   [1] => Array(
            [0] => Array([0] => {3 3})
            [1] => Array([0] => 3)
        )


    [2] => Array(
            [0] => Array(
                    [0] => {textlinks 0_15}
                    [1] => {textlinks 16_30}
                )

            [1] => Array(
                    [0] => 0_15
                    [1] => 16_30
                )
                )


As you can see the third one (array [2] )for some reason is coming out as a
double dimension array, is there any way to make it too into a single
dimension and have just one key/value like the first 2 arrays?

eg: the third one becomes

   [2] => Array(
            [0] => Array([0] => {textlinks 0_15})
            [1] => Array([0] => 0_15)
        )
and a fouth is created like so
   [3] => Array(
            [0] => Array([0] => {textlinks 16_30})
            [1] => Array([0] => 16_30)
        )


Thanks,
Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux