Re: How to create html list from such array ?



lp пишет:
Ivan Omelchenko 608308824 wrote:

more little question: is you array sorted correctly?
if your array has
$myArr = array(
    array("jj", "0", "jjj"),
    array("bb", "ee", "bbb"),
    array("aa", "0", "fff"),
)


This array ^ is wrong. There can't be any row with idParent = 'ee' if
there's no row with id = 'ee'.

Regards,
LB


I mean
$myArr = array(
>      array("jj", "0", "jjj"),
>      array("bb", "jj", "bbb"),
>      array("aa", "0", "fff"),
> )
.