1
I have a system that will parse web pages, during the process the parser should store some data on the page such as: page type (dynamic, static), size(in bytes) these data on the page should be saved in an associative array ex: $meta_dados[tipo] = 'dinamica';
or in an object? will not be stored in any location this information having so use only during parser
Both have their advantages. In my opinion it is more organized with object. By the way, I think the question will be based on opinions after all.
– Franchesco
I think it depends on the style of your code. If everything is object oriented, it makes more sense to use an object for that as well. The associative array is a wildcard in PHP, serves for anything.
– bfavaretto