It's been a while since I wrote a class so I am assuming that I'm missing something obvious.
I always get the error:
unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
when trying to do even a simple class. here's the lame script I've been using to try and figure it out..
class dumbClass {
#private:
$var1 = 0;
$var2 = '';
$var3;
function dumbClass($var1, $var2, $var3) {
$this->var1 = var1;
$this->var2 = var2;
$this->var3 = var3;
}
};
someone school me please. ()-)