Hey there guys I just started trying out with writing classes. I've been looking at a lot of PEAR class files and noticed this:
class classname { function classname() { } }
I know that "$object = new classname;" will automatically run $object->classname();. But is it neccessary for every class to have this function? I read all these scripts and they all have them. I made one simple database class but it failed horribly, and I'm curious to if the initiated functions have anything to do with them.
Thanks. Glenn
If you're writing a database abstraction class, you may want to look at PEAR's DB and related packages. http://pear.php.net/package/DB
-- paperCrane <Justin Patrin> -- Question Everything, Reject Nothing
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php