我在使用PHP把代码放在多行
问题描述:
<?php
$txt="Hello, my name is Max Koenig.";
$intro="I was Born and raised in Calgary, Alberta with my Mother, Father and Sister.";
echo $txt . " ". $intro;
echo strlen ("Hello, my name is Max Koenig.");
$t=date("H");
if ($t>"10")
echo "Good Morning";
elseif ($t>"16")
echo "Good afternoon";
elseif ($t>"19")
echo "Goodnight"
?>
所有这一切麻烦的是在整个页面一个单行跨越,我不知道如何使他们在不同的行我在使用PHP把代码放在多行
答
请在每个PHP语句之后使用HTML Break行标记。像
$txt="Hello, my name is Max Koenig. <br />"; $intro="I was Born and raised in Calgary, Alberta with my Mother, Father and Sister. <br />";
+0
非常感谢 – Max 2013-03-16 22:56:33
声音就像您的文件没有被网络服务器解析 – 2013-03-16 21:57:17
要开始一个新行,请使用html换行符:回声'早上好'
' – 2013-03-16 21:58:54