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

2004-01-13 Thread Richard Davey
Hello Glenn, Tuesday, January 13, 2004, 7:36:18 AM, you wrote: GY> I know that "$object = new classname;" will automatically run $object->>classname();. But is it neccessary for every class to have this GY> function? I read all these scripts and they all have them. I made one GY> simple database

[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