I am dynamically trying to populate a multidimensional array and having some trouble.
I have a list of US states. Associative array like this $states[nc], $states[sc
The same way you add to an array when the key is not a concern:
$data[$state]['cities'][] = $city;