Home  >  Article  >  Backend Development  >  php语法,该怎么解决

php语法,该怎么解决

WBOY
WBOYOriginal
2016-06-13 12:49:51773browse

php语法
求解决!!!老是报:Parse error: syntax error, unexpected T_CASE, expecting ':' or '错误啊
 for($i=0,$j=1,$h=1,$m=1,$n=1,$l=1;$i    {  switch($grade1[$i]/10)
        case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
$j++;
        break;
case '6':
$h++;
break;
        case '7':
        $m++;
break;
        case '8':
    $n++;
break;
case '10':
    case '9':
        $l++;
break;
   
   }

php 语法
------解决方案--------------------
switch($grade1[$i]/10) {
少了个花括号
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn