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

WBOY
Release: 2016-06-13 13:27:37
Original
795 people have browsed it

直接从百科上复制的提示错误
$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


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

探讨
引用:

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