Home > Backend Development > PHP Tutorial > PHP初记(4) - PHP文件的末尾不写?>结束符

PHP初记(4) - PHP文件的末尾不写?>结束符

WBOY
Release: 2016-06-13 13:03:15
Original
1549 people have browsed it

PHP小记(4) - PHP文件的末尾不写?>结束符

这种写法有一个主要的好处:

避免 ?> 后面的不可见字符(多余的空格、换行符)等破坏页面显示,也不会导致 Header already sent 这样的警告信息。

Related labels:
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