Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Arrow Operator Re: [Solved] Arrow Operator

#72974
Makeshift
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;
}

But in order for it to use the variables you would have to use this:

Code:
function getStatement() {
echo $this->h . “, ” . $this->w;
}

But thank you for the example, it was very helpful.