Home >Backend Development >PHP Tutorial > 直接从百科上复制的提示异常

直接从百科上复制的提示异常

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:27:37857browse

直接从百科上复制的提示错误
$arr = array(1,2,3,4,'a','b',"c");
  foreach($arr as $v)
  {
  echo $v." ";
  }
?>
Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\test\checkbox.php on line 2


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

探讨
引用:

删去所有的全角空格
第二行就 = 两边有两个空格还是我加上的,没发现别的空格
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