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

PHP Expecting `T_PAAMAYIM_NEKUDOTAYIM'

WBOY
Release: 2016-06-23 14:36:36
Original
1946 people have browsed it

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

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

代码如下:

foreach($array as item)     echo item;
Copy after login

item 之前应该加上$

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