简体   繁体   English

我在将PHP代码放在多行上时遇到了麻烦

[英]I'm having trouble with putting PHP code on more than one line

<?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"

?>

All of this is on one single line spanning across the page and I don't know how to make them on separate lines 所有这些都在跨越页面的一条线上,我不知道如何在不同的行上制作它们

Please use HTML Break row tag after each PHP statement. 请在每个PHP语句后使用HTML Break行标记。 Like 喜欢

$txt="Hello, my name is Max Koenig. <br />"; $intro="I was Born and raised in Calgary, Alberta with my Mother, Father and Sister. <br />";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM