我对这个很新,我觉得 我的"如果"结构有些问题, 但我不明白什么是真正的问题。
我正试图做以下工作:
<?php
$num = 1;
while($num <=10)
{
if ($num < 4)
{
print $num . " is less than 4 /";
}
elseif ($num = 4)
{
print $num . " is just 4 /";
}
elseif (($num > 4) && ($num < 10))
{
print $num . " is more than 4 and less than 10 /";
}
elseif ($num = 10)
{
print $num . " is just 10 /";
}
$num++;
}
? & gt;
I have a couple hours around this so I finally decided to ask. Any help will be appreciated! Ty in advance for reading.