I have a json object that looks something like this (truncated for readability):
{"value":["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda"
],"order":[0,1,2,3,4,5,6,7,8,9
]}
How can I, using PHP, create a key->value array that I can use in a select loop?
I know how to do the select from a PHP array, but the weird setup of this JSON has me stumped. I need to use the "value" part of the JSON object as the value and the "order" as the key.
Any pointers or ideas would be appreciated.