错误:Parse error: syntax error, unexpected T_VARIABLE in G:\WEB\php\myweb\search.php on line 2<?php
  $arr=array();
  $arrtemp=array();
  for ($i=0;$i<17;$i++){
   $arr[$i]=$i;
    }
  $start=0;
  $sum=17;
  $end=17;
  while ($sum>1){
   $count=0;
   for ($i=$start;$i<$end;$i++){
   if (($i+1)%3==0){
   $arrtemp[$count]=$i-$start;
   $count++;
   }
   }
  
   for ($j=0;$j<$count;$j++){
   echo "第".$arr[$arrtemp[$j]]."个over<br>";
   unset($arr[$arrtemp[$j]]);
   }
   sort($arr);
   echo "还有".sizeof($arr)."个人<br>";
   $tmp=$start;
   $start=$end;
   $end=$start+$end-$tmp-$count;
   $sum=$sum-$count;
  }
  foreach($arr as $key => $value)
  {
   echo $arr[$key];
  }
  ?>