This is probably considered a really silly question, but I\'m in the process of putting together a simple template system for a website and am trying to keep track of my var
In the end they are the same, It depends on the preference, although I would use arrays or objects because you can group variables in there, so you have things better sorted out.
Despite the objects method works I think it's not the natural intended use for it.
So I would say arrays!
Also, there are tons of php native functions you can use with arrays, like array_map()
or array_filter()
array sortings and etc etc...