Tarique, your reply solved my problem. Like you said, I put a nested loop into the first multi dimentional arrays, and then foreach into the second one.
{section name=val loop=$data} {$data[val].User.first_name} {foreach from=$data[val].Comment item=comment} {$comment.body} {/foreach} {/section} Thanks for the help, Tarique! On 3ζ10ζ₯, εεΎ9:37, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 3/10/07, Kyo <[EMAIL PROTECTED]> wrote: > > > Thanks for your reply, Tarique. > > I am curious as to how foreach would access to keys(e.g. [0],[1],[2]) > > in a multi-dimensional associative arrays. > > Ummm... may be I was not clear - first multi dimentional arrays will > need nested a loop > second you will need to use foreach for the comments part the key in > that case will be irrelevant > > HTH > Tarique > > -- > ============================================================= > PHP for E-Biz:http://sanisoft.com > Cheesecake-Photoblog:http://cheesecake-photoblog.org > ============================================================= --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---