Question: > 
> **Possible Duplicate:**  
> 
> [Set array key as string not int?](https://stackoverflow.com/questions/3231318/set-array-key-as-string-not-int) 
> 
> 
> 

I know you can do something like 
`$array["string"]` in php but can you also do something like this in C# instead of using arrays with numbers?

Answer: 
If you want to store key/value pairs, you could probably use a Dictionary:
<http://msdn.microsoft.com/en-us/library/xfhwa508.aspx>

In PHP the "array" class is actually a map, which is a data structure that maps values to keys.

In C# there are a [lot of distinct data structure](http://msdn.microsoft.com/en-us/vcsharp/aa336800) classes. Each with it's own characteristics.  

Wikipedia is a good starting point to read about basic data structures in general:
<http://en.wikipedia.org/wiki/Data_structure#Common_data_structures>
Use `Dictionary` for this purpose :)