[PHP] Re: Basics of OOP

2008-09-09 Thread Nathan Rixham
Ben Stones wrote: Hi, The following bit of code doesn't output anything: ?php class output { var $text; function outputText() { $this-text = Hello World; echo $this-text; } } $class = new output(); $class-outputText; ? As well

Re: [PHP] Re: Basics of OOP

2008-09-09 Thread Jochem Maas
Nathan Rixham schreef: Ben Stones wrote: Hi, The following bit of code doesn't output anything: ?php class output { var $text; function outputText() { $this-text = Hello World; echo $this-text; } } $class = new output();