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
Release: 2016-06-23 14:17:12
Original
1298 people have browsed it

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


回复讨论(解决方案)

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

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template