I'm using PHP for this and I'm using the array listed here: https://gist.github.com/aghouseh/3926213
So basically it's an array with State name, and within those state names is a list of counties, something like this:
$counties = array(
"Alabama" => array(
"Autauga County",
"Baldwin County",
"Barbour County",
"Bibb County")
"California => array(
"Los angeles County",
"San francisco county"));
So basically what I'm trying to accomplish is this:
$counties = array(
"Alabama" => array(
"Autauga County" => "Autauga County",
"Baldwin County" => "Baldwin County",
"Barbour County" => "Barbour County",
"Bibb County" => "Bibb County")
"California => array(
"Los angeles County" => "Los angeles County",
"San francisco county" => "San francisco county"));
I wanna make that second level array into an associative array. I tried to search for an answer and I came up with this but didn't work:
foreach ($counties as $state) {
foreach ($state as $county) {
array_combine($county, $county);
}
}