PHP 没有输出信息纯html信息

WBOY
Release: 2016-06-23 13:50:24
Original
857 people have browsed it

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();
Copy after login

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


回复讨论(解决方案)

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

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

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

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