I got the following line in the wrox php book function Session($this->seshid,$this->userid=0) { // method ... }
I got a parse error for the line "function Session..." What is the problem and how should I fix it for php4?
you cant have direct refs to vars of you class as a parameter to your function. i.e.
function ($this->value) { // -- }
will give error...
do soemthing this:
function ($value) { $this->value = $value; }