Home >Backend Development >PHP Tutorial >Parse error: syntax error, unexpected T_STRING in C:AppServwww1.php on line 3

Parse error: syntax error, unexpected T_STRING in C:AppServwww1.php on line 3

WBOY
WBOYOriginal
2016-06-23 14:17:121297browse

    
$s=array('你好','我好','大家好');
  
   shuffle($s); 
       
   for($i=0;$i        echo $s[$i];
   echo '
';
   }
   
   
    
?>
出现标题中的错误,怎么办哦?


回复讨论(解决方案)

$s=array('你好','我好','大家好');

分号写错了 ,应该是";" 不是";" 一切都要英文的啊 

$s=array('你好','我好','大家好');//全角分号改为半角分号

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