Home >Backend Development >PHP Tutorial >How does phpstorm support php code in html, but it keeps reporting errors now?

How does phpstorm support php code in html, but it keeps reporting errors now?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-10-17 09:30:152250browse

How does phpstorm support php code in html, but it keeps reporting errors now?

Reply content:

How does phpstorm support php code in html, but it keeps reporting errors now?

Writing PHP code in JS will definitely report an error, but writing it in HTML will not.
Or if you feel uncomfortable, you can directly lower the error level.
How does phpstorm support php code in html, but it keeps reporting errors now?

Move the pointer to None and there will be no error.

Make sure:

When writing PHP code in HTML, your file extension should end with .php to be recognized!

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