我试图在我的 html 代码中使用 php 函数,但它一直将此块视为注释!(源代码中的颜色为绿色,不输出任何内容)尽管我在另一个文件中使用了相同的函数,即使在 html 中它也能正常工作。 ..
function x (){
$x = 'hello';
echo('<marquee direction="left" scrollamount="3" behavior="scroll" style="width:300px;
height: 15px; font-size: 11px;">');
echo $x;
echo'</marquee>';
}
<?php
echo x();
?>
正在使用的 html 文件是我在网上找到的模板……对我应该检查的内容有什么建议吗?
谢谢!