Welcome Guest, Not a member yet? Register   Sign In
displaying distributed php foreach lists in multidimensional array
#3

[eluser]mx_code_monkey[/eluser]
solid9,

yes and no, i have not tried exactly to nest a for loop within a foreach loop,
but i suppose that is how it could logically work.

i'm just wondering what the best practice is, since to me,
using more than one nested logical control loop within a MVC view
sort of defeats the purpose of separating control code with view code.

for now, I have combined my strings before the output with the full list items pre-formatted as an html string, keeping it to one-dimensional array, easy to display.


Messages In This Thread
displaying distributed php foreach lists in multidimensional array - by El Forum - 10-19-2012, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB