I'm getting a “syntax error, unexpected T_VARIABLE” error. I don't see what I'm doing wrong?
- 阅读更多 关于 I'm getting a “syntax error, unexpected T_VARIABLE” error. I don't see what I'm doing wrong?
问题 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];