Dave
-----Original Message-----
From: Dave Maharaj :: WidePixels.com [mailto:dave@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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment