How to solve the problem of php delimiter error

藏色散人
Release: 2023-03-14 22:00:01
Original
1371 people have browsed it

Solution to php delimiter error: 1. Open the corresponding PHP code file; 2. Place the cursor on the next line, with code such as "echo <<

How to solve the problem of php delimiter error

The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer

How to solve the problem of php delimiter error?

An error occurred in the PHP delimiter

Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN)
Copy after login

In class today, errors were reported in the sports delimiters Heredoc and Nowdoc. In the end, I found that even after writing the following Delimiter, you must also keep the cursor on the next line to solve the problem

  echo <<<ABC
  45645646465
  ABC;
Copy after login

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to solve the problem of php delimiter error. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!