I'm new to working with complex arrays/objects and need a little help.
Below is the array I need to convert to a different type of array.  The
"begin what i have" section is data I've succesfully mined from an XML file.
The data labeled "desired output" is how I need the data to be formatted.
How do I do this?


//BEGIN WHAT I HAVE
Array
(
    [0] => ssions Object
        (
            [name] => Apr 2003
            [stocks] => 82024.52
            [bonds] => 104896.27
            [mutual] => 1171816.79
            [insurance] => 2352039.80
            [other] => 33644.55
        )

    [1] => ssions Object
        (
            [name] => Mar 2003
            [stocks] => 77045.10
            [bonds] => 119246.42
            [mutual] => 806411.00
            [insurance] => 1456819.41
            [other] => 5727.44
        )

    [2] => ssions Object
        (
            [name] => Feb 2003
            [stocks] => 82307.25
            [bonds] => 77010.68
            [mutual] => 800041.89
            [insurance] => 2119164.09
            [other] => 20440.45
        )

)


//BEGIN DESIRED OUTPUT
Array
(
    [0] => Array
        (
            [0] => Apr 2003
            [1] => 82024.52
            [2] => 104896.27
            [3] => 1171816.79
            [4] => 2352039.8
            [5] => 33644.55
        )

    [1] => Array
        (
            [0] => Mar 2003
            [1] => 77045.1
            [2] => 119246.42
            [3] => 806411
            [4] => 1456819.41
            [5] => 5727.44
        )

    [2] => Array
        (
            [0] => Feb 2003
            [1] => 82307.25
            [2] => 77010.68
            [3] => 800041.89
            [4] => 2119164.09
            [5] => 20440.45
        )

)





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

Reply via email to