[development] Drupal - to use objects or arrays
adrian at bryght.com
Wed Jan 10 09:40:15 UTC 2007
On 10 Jan 2007, at 6:08 AM, Rowan Kerr wrote:
>> There's no hard rule, but I think "what makes semantic sense when
>> writing it"
>> is the guideline. Oh yes, and when iterating over records from a
>> where it really doesn't make a difference, using db_fetch_object()
>> seems more
>> common than db_fetch_array(), simply because there's fewer funky
>> involved with objects than arrays. :-)
> I'd be happy to see objects removed completely from Drupal...
We do all that extra casting , for no real reason.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development