Getting position and value in an array
Posted: Sun Jan 14, 2007 4:33 pm
I have an array which each key is associated to an ID in my DB and the associated name.
I'm using this for posting a form which changes dynamically. How would you go about getting this data? I can do foreach, but I can only seem to get the value, without the key associated, which i need.
Thanks!
I'm using this for posting a form which changes dynamically. How would you go about getting this data? I can do foreach, but I can only seem to get the value, without the key associated, which i need.
Thanks!