On Cyberlot's blog today, he has this new post where he looks at extending the already powerful PDO library to fetch information and not have to use setFetchMode with every query.
Now if your like me and use the same exact mode 99% of the time this can get a little annoying.
Well ran into a project where I would need to get the status of a mysql table often, so wanted to make some reusable code for this, realize this also might be a good time to tackle the whole pdo issue, so here you go a solid example of how to extend PDO to stop having to use setFetchMode every query or extend it some more to change your needs.
The code itself is pretty simple, and makes fetching the results a bit less tedius of a task...