Home › Forums › Back End › [Solved] Arrow Operator › Re: [Solved] Arrow Operator
March 25, 2010 at 10:17 pm
#72974
Member
Alright, well, I looked into it, and it seems you made a mistake in your example..
Your function was like this:
Code:
function getStatement() {
echo $h . “, ” . $w;
}
echo $h . “, ” . $w;
}
But in order for it to use the variables you would have to use this:
Code:
function getStatement() {
echo $this->h . “, ” . $this->w;
}
echo $this->h . “, ” . $this->w;
}
But thank you for the example, it was very helpful.