I'm developing a PHP library and I'd like to add some hard coded data using arrays. How do I determine the optimal way to structure the data in terms of the array keys and values? For example, if I wanted to do the United States I could go:
$states = array(
'AL' => 'Alabama',
'AZ' => 'Arizona',
...);
Or instead I could go:
$states = array(
array('AL', 'Alabama'),
array('AZ', 'Arizona'),
...);
I feel like the second option might be better because then I could consistently structure all data that way regardless of how many "fields" there are because it is more akin to database rows.
Edit: To clarify, I'm looking fot a generic solution or set of rules I can use. For example the data may be something other than the United States and have 1 field or 8 fields instead of 2. In these cases there may not be something I can use for the key. Another question is do I want all the data arrays to have the same structure or should I use whatever best fits the specific data set?