当前位置:Gxlcms > PHP教程 > PHP错误代码Parseerror:syntaxerror,unexpected解决方法

PHP错误代码Parseerror:syntaxerror,unexpected解决方法

时间:2021-07-01 10:21:17 帮助过:161人阅读

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

  1. <?php
  2. $s=array('你好','我好','大家好');
  3. shuffle($s);
  4. for($i=0;$i<=2;$i++){
  5. echo $s[$i];
  6. echo '
  7. ';
  8. }
  9. ?>

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



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

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


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

人气教程排行