Sorry to post...i figured it out.

Dave

-----Original Message-----
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com] 
Sent: September-30-09 3:23 PM
To: cake-php@googlegroups.com
Subject: Help with an array()


I have a merged array which produces

$new = array_merge($newSelections[$model_table],$additional_options);
 
Array
(
    [0] => Array
        (
            [id] => 9
            [name] => Confident
            [UsersOption] => Array
                (
                    [id] => 222
                    [user_id] => 4a5d323f-b9e8-416d-b34c-11cf4adcd75b
                    [option_id] => 9
                )

        )

    [0] thru [9] same as above structure........

    [10] => ghjghjghj
    [11] =>  tet
)

How can I make it so 

[10] => Array
        (
                [name] => ghjghjghj
        )

So I can loop thru all the results in a foreach ['name'] Thanks

Dave




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Help with an array() Dave Maharaj :: WidePixels.com
    • RE: Help with an array() - SOLVED Dave Maharaj :: WidePixels.com

Reply via email to