Class or Hash?
Date: 02/26/06
(PHP Community) Keywords: no keywords
Not going to do a poll, but I am curious: which do you prefer using, classes or hashes?
I was working on a class tonight that needed a specific set of data passed to a funtion. My first impulse, after playing with VB.NET for the past few months, was to create a class. However, during the debug process I switched to a hash to test something. I'm probably going to stick with the hash, as it's just as easy and requires less code.
In general, though, what does everyone prefer?
Source: http://community.livejournal.com/php/418897.html