Home >Backend Development >PHP Tutorial >PHP 没有输出信息纯html信息

PHP 没有输出信息纯html信息

WBOY
WBOYOriginal
2016-06-23 13:50:24859browse

function ax(){    $ax = <<<HEADER    <!DOCTYPE html>    <html>    <head lang="en">    <meta charset="UTF-8">    <title>Hello World</title>    </head>    <body>    Hello world!;    </body>    </html>HEADER;    echo $ax;}ax();

为什么没有输出??,是不是那里错了??


回复讨论(解决方案)

代码本身无误,看看上下文

代码拷贝下来测试,我这里有输出

如果这就是全部代码的话肯定有输出的,除非还有其他代码或者哪个地方你搞错了。

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