News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Timothy Boronczyk's Blog:
Evil Access (a Database Class)
January 21, 2009 @ 21:34:04

Timothy Boronczyk has posted a class that provides a different sort of theory on database access:

I was thinking today about database APIs when inspiration struck. I ended up hacking out the following class, which I think demonstrates a rather interesting approach to interfacing with a database (interesting enough at least to post here).

His class implements an Iterator and lets you bend a few of the rules PHP normally has in place (use of the magic methods, special characters in an identifier). He also includes an example of its use - connecting to the database, selecting information and pulling that information back out.

0 comments voice your opinion now!
database class iterator implement magicmethod


blog comments powered by Disqus

Similar Posts

NETTUTS.com: Why you Should be using PHP's PDO for Database Access

PHPMaster.com: List Files and Directories with PHP

WeberDev.com: PHP 101 (part 14): Going To The Polls

DevShed: Using Directory Iterators and MySQL with Adapter Objects with PHP

Nick Halstead's Blog: 10 Reasons why PHP is still very much alive


Community Events

Don't see your event here?
Let us know!


library wordpress threedevsandamaybe community unittest laravel laravel5 api opinion podcast interview release feature development voicesoftheelephpant language series framework introduction extension

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework