Re: [PHP] OO Question for PHP4

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 09:14:08 -0600, Jed R. Brubaker <[EMAIL PROTECTED]> wrote: > Hi all. As the subject suggests, I am using PHP4 and am having something > going on that I don't think should be. > > Presume the following code > class Foo { > function Foo () { > return "Bar"; You shoul

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Jason Davidson
Yup, i typo'd .. should have read, Im not sure you should be returning a value.. Jason Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > > * Jason Davidson <[EMAIL PROTECTED]>: > > Im sure you should be returning a value in your constructor at all?? Ill > > check the manual, but i dont

Re: [PHP] OO Question for PHP4

2004-08-11 Thread David Bevan
On Wed, 2004-08-11 at 11:14, Jed R. Brubaker wrote: > Hi all. As the subject suggests, I am using PHP4 and am having something > going on that I don't think should be. > > Presume the following code > class Foo { > function Foo () { > return "Bar"; > } > } > $foo = new Foo; > echo

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Matthew Weier O'Phinney
* Jason Davidson <[EMAIL PROTECTED]>: > Im sure you should be returning a value in your constructor at all?? Ill > check the manual, but i dont think ive ever seen a constructor return > anything, doesnt sound right.. Let me check. >From my experience, returning a value from a constructor currentl

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Jason Davidson
Im sure you should be returning a value in your constructor at all?? Ill check the manual, but i dont think ive ever seen a constructor return anything, doesnt sound right.. Let me check. Jason "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > > Hi all. As the subject suggests, I am using PHP4 and

RE: [PHP] OO Question for PHP4

2004-08-11 Thread Jay Blanchard
[snip] Hi all. As the subject suggests, I am using PHP4 and am having something going on that I don't think should be. Presume the following code class Foo { function Foo () { return "Bar"; } } $foo = new Foo; echo $foo; $foo comes out as an object. Does this have to be done in tw