Re: categorizing and array mapping

From: Date: Tue, 16 Mar 2004 15:58:21 +0000
Subject: Re: categorizing and array mapping
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180472@lists.php.net to get a copy of this message
Hi David, Are you mean, complete categori tree? I would be take this step: 1). Determine category level. 2). Loop for count of level. 2.1). Collect all category in level number. 2.2). If is root category save this. 2.3). If isn't root category, loop inside data and find subcategory for it. Emm..., I use this for printing category tree in my project. I guess this too many eat memory, any ideas? but it work properly, and support unlimited level category :)), but I can provide you the code because this project is one package, I worry you don't understand if I attach a bit code. I hope with this litte pieces, you can found the algorithm. I hope don't missing something. :( Good Luck, Firman ----- Original Message ----- From: "David T-G" <davidtg-php@justpickone.org> To: "PHP General list" <php-general@lists.php.net> Sent: Monday, March 15, 2004 9:45 PM Subject: [PHP] categorizing and array mapping

« previous php.general (#180472) next »