Say you have data in the format:
name=john;age=33;gender=male
What would you call a method that converts data like that into an an object / associative array?
I've been thinking about:
- unserialize_variables
- parse_variables
Say you have data in the format:
name=john;age=33;gender=male
What would you call a method that converts data like that into an an object / associative array?
I've been thinking about:
- unserialize_variables
- parse_variables
In two steps:
ContainerType person = data.parse();
Employee employee( person["name"], person["age"], person["gender"] );
PersonReader. Works if you change how you persist the person data in the future too.