Welcome Guest, Not a member yet? Register   Sign In
Object results vs Array results
#5

[eluser]WanWizard[/eluser]
It all depends on the what the object contains, and what you intend to do with it.

In terms of data manipulation and cost (processing, memory), array's are a better choice. Also arrays are simpler to serialize (for example if you store them in a session).

Objects however allow you to embed code as well, protect data structures inside the object, etc. They also allow you to make relations ( $this->that ) which are heavily used by for example ORM implementations.


Messages In This Thread
Object results vs Array results - by El Forum - 06-08-2010, 09:58 PM
Object results vs Array results - by El Forum - 06-08-2010, 10:22 PM
Object results vs Array results - by El Forum - 06-08-2010, 11:50 PM
Object results vs Array results - by El Forum - 06-08-2011, 06:50 AM
Object results vs Array results - by El Forum - 06-08-2011, 10:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB