1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

basic-syntax.xml Specify when it is better to skip closing PHP tags (#4304)

It seemed to me that limiting the skipping of closing PHP tags to only files that contain only PHP code is misleading. After all, we skip closing tags in files with mixed content too, and the condition for skipping is not whether the file consists only of PHP code, but whether the file ends with PHP code
This commit is contained in:
Mikhail Alferov
2025-04-24 17:36:59 +03:00
committed by GitHub
parent 0a535845d9
commit 0e618211e5

View File

@@ -57,7 +57,7 @@
</para>
<para>
If a file contains only PHP code, it is preferable to omit the PHP closing tag
If a file ends with PHP code, it is preferable to omit the PHP closing tag
at the end of the file. This prevents accidental whitespace or new lines
being added after the PHP closing tag, which may cause unwanted effects
because PHP will start output buffering when there is no intention from