I'm getting this error: "PHP Parse error: syntax error, unexpected T_VARIABLE in /var/www/vhosts/... on line 66"
Here's my code:
function combine($charArr, $k) {
    $currentsize = sizeof($charArr);
    static $combs = array();
    static $originalsize = $currentsize; ###### <-- LINE 66 ######
    static $firstcall = true;
    if ($originalsize >= $k) {
        # Get the First Combination 
        $comb = '';
        if ($firstcall) { //if this is first call
            for ($i = $originalsize-$k; $i < $originalsize; $i++) {
                $comb .= $charArr[$i];
            }
            $combs[] = $comb; //append the first combo to the output array
            $firstcall = false; //we only want to do this during the first iteration
        }
    ....
    ....
}
Any idea what's wrong?
 
     
     
     
    