Home >Backend Development >PHP Tutorial >PHP Expecting `T_PAAMAYIM_NEKUDOTAYIM'

PHP Expecting `T_PAAMAYIM_NEKUDOTAYIM'

WBOY
WBOYOriginal
2016-06-23 14:36:361942browse

在写PHP页面代码的时候,遇到 Expecting `T_PAAMAYIM_NEKUDOTAYIM'

网上查到的内容不是很明晰。最后终于发现是自己丢了PHP变量的$美元符号。作为初学者,丢三落四是常见的。

代码如下:

foreach($array as item)     echo item;

item 之前应该加上$

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
Previous article:php short_open_tag asp_tagsNext article:PHP笔记