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: 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 meant that __construct() doesn't work in php

Re: [PHP] Re: _Construct question

2007-03-21 Thread Chris
Erik Jones wrote: That's not true, running with v. 5.2.1: 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 meant that __construct() doesn't work in php4. It's only available in php5. php5

Re: [PHP] Re: _Construct question

2007-03-21 Thread Erik Jones
That's not true, running with v. 5.2.1: 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 - http://www.itoctopus.com "John Comerford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[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 _co

[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