Hi,
Can someone tell me what the $this-> does on this line.
$this->graph_title="Title Here";
Txs,
Miky
http://www.php.net/manual/en/language.oop.php
Thanks. I tried searching the manual but nothing would come up.
When setting a variable within a class - use var $foo = $bar;
Then within the class $this ->foo = $bar2;
Will reset the value of $foo to $bar2
Note the use of the $ and where it is missing...
$this->foo is a self-reference. In other languages, the equivalent might be "self.foo" or "me.foo" It's a way of saying "the foo variable in THIS instance of the object."
If only people would UTSB!!
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10276524#post10514866
And that was only through a search using the qtring "$this" (no quotes) :rolleyes:
[edit]There... is that better?? :rolleyes: [/edit]
[edit to please Buzz]Better?? [/edit]
Huh? I'm confused! "$this" is a qtring? What's a qtring? Jeez, this is getting more and more confusing by the second...
STFW Buzz, geez. :p
Ah, yes, I see. Thank you. I'll get this "web" thing yet...
aha
aha:rolleyes:
Hey... no fair editing your original post. Put that back where you found it!
lol only the poster has less then a 1000 posts, the rest of you guys are like generals here 🙂 Just an observation.. sorry
No, I'm a little more specific.