最新回答 / 贾骨文
实现对内存的查看和操作<...code...>详情查看http://www.php100.com/html/php/lei/2013/0904/3982.html
2017-08-02
是绿色的,但是localhost报错:HTTP Error 404. The requested resource is not found.
想求教一下
想求教一下
2017-08-01
$sum = 12;
echo "我饿了:-(";
echo "<br/>";
$sum<=100;
while($sum<=100)
{
$num = rand(1,6);
$sum = $num + $sum;
echo "HP:".$sum;
echo "我还没有吃饱";
if($num>100-$sum)
{
echo "我快吃饱了";
}
echo "<br/>";
if($sum==100){
echo"终于吃饱了";}
if($sum>100){
echo"呜呜~~我吃撑了!";}
}
echo "我饿了:-(";
echo "<br/>";
$sum<=100;
while($sum<=100)
{
$num = rand(1,6);
$sum = $num + $sum;
echo "HP:".$sum;
echo "我还没有吃饱";
if($num>100-$sum)
{
echo "我快吃饱了";
}
echo "<br/>";
if($sum==100){
echo"终于吃饱了";}
if($sum>100){
echo"呜呜~~我吃撑了!";}
}
2017-08-01
单引号与双引号的作用是有区别的:双引号解析变量,单引号不解析变量。
<?php
$love = "I love you!";
$string1 = "慕课网,$love";
$string2 = '慕课网,$love';
echo $string1;
echo "<br />";
echo $string2;
?>
显示的结果为:
慕课网,I love you!
慕课网,$love
<?php
$love = "I love you!";
$string1 = "慕课网,$love";
$string2 = '慕课网,$love';
echo $string1;
echo "<br />";
echo $string2;
?>
显示的结果为:
慕课网,I love you!
慕课网,$love
2017-08-01