How to use string indexes in c++ arrays (like php)?
arrays, c++
Solution
You could use `std::map` to get an associative container in which you can lookup values by a string index. A map like `std::map<std::string, int>` would associate integer values with `std::string` lookup keys.
Problem
How can I use a string index in a c++ array (like in php)?