PHP错误代码 Parse error: syntax error, unexpected解决方法

PHP中文网
Release: 2016-06-13 12:40:59
Original
2116 people have browsed it

  Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\1.php on line 3

<?php
    
$s=array(&#39;你好&#39;,&#39;我好&#39;,&#39;大家好&#39;);
  
   shuffle($s); 
       
   for($i=0;$i<=2;$i++){
       echo $s[$i];
   echo &#39;
&#39;;
   }
   
   
    
?>
Copy after login

出现标题中的错误,怎么办哦?



------解决方案--------------------

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


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


Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!