Re: create tree from arrays
| From: | Richard Quadling | Date: | Thu, 13 May 2010 10:52:40 +0000 |
| Subject: | Re: create tree from arrays | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305152@lists.php.net to get a copy of this message | ||
On 13 May 2010 11:42, shahrzad khorrami <shahrzad.khorrami@gmail.com> wrote:
>
> Dear Richard,
> we have more than one parentID with value 0 in main array, your
> code is so good but show me just the children of first parentID 0.
>
> :)
>
> Thanks,
> Shahrzad
>
print_r($Data[0]['children']);
maybe.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling