array question

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

 



After Wracking my brain for too long on this I decided to give in and ask.
I have holes in an array that came from a database. I put the holes there with 
unset some values so no prob. Now I need to fill the holes. Below is what I 
have and what I need for further manipulations.

Array
(
    [0] => Array
        (
            [0] => Completed
        )

    [1] => Array
        (
            [1] => In Progress
        )

    [2] => Array
        (
            [0] => Completed
        )

    [3] => Array
        (
            [0] => Completed
            [1] => In Progress
            [3] => Deferred
        )
 What I need is:
Array
(
    [0] => Array
        (
            [0] => Completed
        )

    [1] => Array
        (
            [0] => In Progress
        )

    [2] => Array
        (
            [0] => Completed
        )

    [3] => Array
        (
            [0] => Completed
            [1] => In Progress
            [2] => Deferred
        )
Hope this makes sense

John Coder

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



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux