object(stdClass)#25 (7) {
["store_id"]=>
string(2) "27"
["account_id"]=>
string(1) "5"
["store_date_created"]=>
string(19) "2011-01-31 02:40:38"
["options"]=>
array(2) {
[0]=>
array(2) {
["key"]=>
string(5) "state"
["value"]=>
string(2) "FL"
}
[1]=>
array(2) {
["key"]=>
string(7) "zipcode"
["value"]=>
string(5) "12343"
}
}
}
I have this object structure for a Store and one of its attributes is an assoc. array of options (pulled from a DB). There can be zero to many options, but key will always be unique. I need a way to take the options assoc. array and turn it into something like this:
["options"]=>
array(1) {
["state"] => "FL",
["zipcode"] => "12343"
}
Don't know if my syntax is correct for the result I want but I basically want to do:
echo $store_obj->options['state']