[PHP] class limitations brought by PEAR

2004-01-13 Thread Glenn Yonemitsu
I don't want to rely on PEAR, mainly because I don't know it too well to use it fully. But most PHP installs come with base PEAR classes, so does that take away my ability to name classes that PEAR already made? (ie. class DB). Glenn -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] class functions where the function name == class name

2004-01-13 Thread Glenn Yonemitsu
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 c