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

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

WBOY
WBOYOriginal
2016-06-13 13:03:151527browse

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

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

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

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