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
In PHP, you can fill an array without referring to the actual index.
$newArray = array(); foreach($var in $oldArray){ $newArray[] = $var; }