Which is the better alternative? I've noticed PDO let's you return as an array or an object. I've always used arrays when using my old functions (mysql_fetch_assoc()) but I've just written a wrapper class for the PDO object and I was curious as to which is better.
I suppose an object would be stricter... you can change/add to a returned array which may muddle up your results unexpectedly (if you forgot you added/changed a key/value).
Are returned records in arrays more an old fashioned way, and should I adopt the objects, for which reasons?