<?php
$i = 1 ; //从第1圈开始跑
do{ //跑10圈
echo "在跑第".$i."圈。";
$i++;
}while(true);
?>
$i = 1 ; //从第1圈开始跑
do{ //跑10圈
echo "在跑第".$i."圈。";
$i++;
}while(true);
?>
2017-05-06
<?php
$sum = 12;
echo "主人,我特么都要饿死了,你还管不管啊?";
echo "<br /><br />";
while($sum <100)
{
$num = rand(1,20);
$sum = $sum + $num;
echo "我还没吃饱呢!饱食度:".$sum."---当前喂食:".$num;
echo "<br />";
}
if ($sum>100)
echo "你特么喂猪呢?撑死我了!"."当前饱食度:".$sum;
else
echo "<br />饱暖思淫欲,主人~我要~~"."当前饱食度:".$sum;
?>
$sum = 12;
echo "主人,我特么都要饿死了,你还管不管啊?";
echo "<br /><br />";
while($sum <100)
{
$num = rand(1,20);
$sum = $sum + $num;
echo "我还没吃饱呢!饱食度:".$sum."---当前喂食:".$num;
echo "<br />";
}
if ($sum>100)
echo "你特么喂猪呢?撑死我了!"."当前饱食度:".$sum;
else
echo "<br />饱暖思淫欲,主人~我要~~"."当前饱食度:".$sum;
?>
2017-05-06
最新回答 / 野生码农在线co腚
<VirtualHost *:80> DocumentRoot "E:\ecshop" ServerName ecshop.com ServerAlias <Directory "E:\ecshop"> Options +Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all g...
2017-05-06
已采纳回答 / 慕工程6026812
是啊<?php $sum=0; $num=rand(1,6); while($num==6){ $sum=$sum+$num; $num=rand(1,6); } $sum=$num+$sum; echo "总步数为".$sum."<br />"?>或者是这样 $sum1=0; do{ $num1=rand(1,6); $sum1=$sum1+$num1; }while($num1==6...
2017-05-06
<Directory />
AllowOverride none
# Require all denied
# 添加配置,当403时
allow from all(添加)
</Directory>
亲测ok
AllowOverride none
# Require all denied
# 添加配置,当403时
allow from all(添加)
</Directory>
亲测ok
2017-05-06
date_default_timezone_set('Asia/ShangHai');
$today = date('m-d',time());//获取当天日期
$birthday = "02-14";//生日
$money = 238;//消费金额
$discount = 0.8;//八折优惠
if($today && $birthday){
$money = $money*$discount;
}else{
$money = $money * 1;
}
echo $money;
$today = date('m-d',time());//获取当天日期
$birthday = "02-14";//生日
$money = 238;//消费金额
$discount = 0.8;//八折优惠
if($today && $birthday){
$money = $money*$discount;
}else{
$money = $money * 1;
}
echo $money;
2017-05-05
还想问if后面是else if 不一定执行。因为用if...else才一定会执行else"女"的那一部分,再一想性别不就男女么,男的不执行那肯定要执行女的啊 23333.
2017-05-05