Re: Need some help folks....
| From: | Joe Stump | Date: | Tue, 28 Nov 2000 20:14:41 +0000 |
| Subject: | Re: Need some help folks.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27671@lists.php.net to get a copy of this message | ||
Put the key in a dumping ground like $working_key and then when you come to
one that != $working_key start a new category. This will ONLY work if the
array is sorted / grouped by key.
--Joe
On Wed, Nov 29, 2000 at 02:25:00AM -0800, Dallas Kropka wrote:
> I have an array of categories that I need to turn into text links.... the array looks like this
> but contains many more listings....
>
> "online" =>"Online Business
> "rent_auto" =>"Automobile / Boat Rentals
> "retail_antique" =>"Antique
> "food_bakery" =>"Bakeries
> "serv_apartment" =>"Apartment Locators
> "man_apparel" =>"Apparel
> "fin_accounting" =>"Accounting
> "other_agg" =>"Agriculture
>
>
> you get the idea.... What I need to do is check the KEY of the array, and when the key changes,
> I need to start a new section in the links like so...
>
> Online Businesses.....
> .........
> ........
>
> Rentals
> .........
> .........
>
> Retail
>
> Etc....
>
>
> How do you suppose I should do this? The trick to the KEY is to check the first part of the KEY
> and if it changes, then to change the section.... but how?
>
> Much thanks...
> Dallas K.
================================================================================
= Joe Stump joestump98@yahoo.com http://www.miester.org =
================================================================================
Need a programmer? http://www.google.com/search?q=joe+stump+resume