Home > Backend Development > PHP Tutorial > 弄 Hello World 的时候遇到有关问题了

弄 Hello World 的时候遇到有关问题了

WBOY
Release: 2016-06-13 13:09:00
Original
1077 people have browsed it

弄 Hello World 的时候遇到问题了
这是代码:

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->


<?php echo "Hello World";
?>



Copy after login


结果在浏览器中查看源文件的时候是这样的:



Hello World


怎么少了一个空行?被PHP吃了么?
我用的是免费的PHP空间,是否是服务器的问题?

------解决方案--------------------
是的,php要吃掉 ?> 后边的一个换行符
------解决方案--------------------
探讨

引用:

是的,php要吃掉 ?> 后边的一个换行符


有什么比较实用的意义么?php 不是讲究实用么?
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