Which is faster and/or more efficient to use for "mass" data stoage.
Objects? or Arrays?
:Figment
Arrays, if you use them wisely. But you also have other data structures that may be faster for your application: linked lists, stacks, queues, trees, etc...
Diego
But then.. why do so many php functions return objects instead of arrays?
Which ones return objects? I don't know that many functions in PHP that return objects...only the database ones. And if that's your example, then the counter example is that PHP provides the same functionality with arrays. For example, there is mysql_fetch_object, but there's also mysql_fetch_array.
a good example is the imap functions...
my question a few days ago regarding one liners.... i wastrying to work with the output of imap_header
http://www.php.net/manual/en/function.imap-header.php
being new to the imap functions, there could very well be one that returns an array.. i havent found it yet
Cheers