Thanks for the replies everyone. Sorry, I took a (brief) look through the manual before posting, but obviously not as much as I should have. I'm still not sure about retrieving the key from the array as there seem to be a couple of different functions related to this.
rnickel, there are a couple of things I'd like to do with this. First of all I'm putting together a rather simple record management program using mysql and would like to use arrays for the delete checkboxes next to each record, which unfortunately have mixed IDs such as A25 or even longer words. I thought it would be good to use arrays to see which records are being deleted. However, it's more important to me to retrieve the key of the array than the value itself, which would just be true or false with teh checkboxes. So with delete['twr'] set I know twr should be deleted. And then do a foreach() to delete each one.
My other use is somewhat similar to this one so I won't go through it here. If you know a better way of doing this please let me know - I'm used to just using delete links on these sorts of projects but in this case the checkboxes are necessary which has caused me a bit of trouble...