Extracting from arrays - alphabetically
| From: | Kevin Price-Ward | Date: | Tue, 17 Jul 2001 10:23:43 +0000 |
| Subject: | Extracting from arrays - alphabetically | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58246@lists.php.net to get a copy of this message | ||
Hi,
A simple problem for you guys (I think),
I have 2 arrays - firstname and lastname, both have the same associative
index - lastname, I have then performed asort on both to order them
alphabetically. Now I just need to extract and display the array elements
that have the associative index beginning with A or B or whatever is defined
by $query - thus displaying only names where the lastname begins with A etc.
How do I do this?
Thanks for any help you can offer.
Lar