Home  >  Article  >  Backend Development  >  About the php code embedded in html in phpstorm always prompts an error, how to cancel this thing?

About the php code embedded in html in phpstorm always prompts an error, how to cancel this thing?

PHP中文网
PHP中文网Original
2017-03-15 11:47:522345browse

Solution:

Click on the little head in the lower right corner, and then move the pointer to NONE.

This is obviously not an html tag, it belongs to the json data format. It is just written in the script tag of the html page, and it is also mixed too dirty. Generally, the background php only provides data output, so it is best not to Put PHP logic on the front end, and your eyebrows and beard will be scratched. . .

Why embed php in json? Just write the json and use php to read it

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