Welcome Guest, Not a member yet? Register   Sign In
result() vs. result_array() - result() costs mucho dinero

i dont know all of the ins and outs but arrays are always going to use less space than objects
this has to do with their structure

considered one way arrays and objects are similar
they are both structures that can hold data in a similar way. Arrays are made up of keys and values and objects have properties and values.
The big difference is of course that objects can all have methods and you can create instances of them.
That is where I think they extra memory is used, keeping track of the extra structures and abilities of an object as compared to an array

i also prefer my data in arrays rather than in objects
it makes it easier for me to distinguish in general whether im accessing data or object such as models and controllers.

Messages In This Thread
result() vs. result_array() - result() costs mucho dinero - by El Forum - 07-01-2009, 10:01 PM

Theme © iAndrew 2016 - Forum software by © MyBB