[PHP] Re: Basics of OOP
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
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();