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

« MySQL/PHP connection error || FileMaker »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home