Re: [PHP] Re: _Construct question

2007-03-22 Thread Erik Jones
On Mar 21, 2007, at 7:14 PM, Chris wrote: Erik Jones wrote: That's not true, running with v. 5.2.1: ?php class A { function A() { echo works\n; } } $a = new A(); ? Outputs: works On Mar 21, 2007, at 8:06 AM, itoctopus wrote: They're basically the same thing, however, you can

[PHP] Re: _Construct question

2007-03-21 Thread itoctopus
They're basically the same thing, however, you can only use __construct in PHP5. -- itoctopus - http://www.itoctopus.com John Comerford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Folks, I am still pretty new to PHP and I have a question regarding classes and using

Re: [PHP] Re: _Construct question

2007-03-21 Thread Erik Jones
That's not true, running with v. 5.2.1: ?php class A { function A() { echo works\n; } } $a = new A(); ? Outputs: works On Mar 21, 2007, at 8:06 AM, itoctopus wrote: They're basically the same thing, however, you can only use __construct in PHP5. -- itoctopus -

Re: [PHP] Re: _Construct question

2007-03-21 Thread Chris
Erik Jones wrote: That's not true, running with v. 5.2.1: ?php class A { function A() { echo works\n; } } $a = new A(); ? Outputs: works On Mar 21, 2007, at 8:06 AM, itoctopus wrote: They're basically the same thing, however, you can only use __construct in PHP5. He

[PHP] Re: _Construct question

2007-03-20 Thread Gregory Beaver
John Comerford wrote: Hi Folks, I am still pretty new to PHP and I have a question regarding classes and using _construct. Up until now I have been creating my classes as follows: class test1 { var $name; function test1($pName) { $this-name = $pName; } } So I when I create a new