I'm in the process of creating a PHP data structure based on some data I'm fetching from somewhere.
If I would encode this information in some standard container, like XML or JSON, I would use this structure:
[ {'name': 'Lupin', 'age': '13'}, {'name': 'Igor', 'age': '24'}, ... ];
However I'm a bit unsure what to use in PHP ( Array of Arrays vs Array of Objects ).
One thing is that I don't really care much about readability, but I would like to be able to sort this Array (which can be quite big). For example I might want to sort it for the biggest age, or something else.
So what structure should I use for my data in PHP? I would like some performance comparisons mostly.