回 帖 发 新 帖 刷新版面

主题:怎么会算出这样子的结果呢????

<?php
error_reporting(E_ALL);
echo date("Y m D jS H:i:s:A L I");
echo"<br>";
$bookname='english';
$booktype='study';
$bookauth='meng_meng';
$bookpublish='guangzhou';
$bookprice=30;
$bookcount=3;
$bookcost=$bookprice*$bookprice;
echo "You had bought the book:\t$bookname:<br>";
echo "The book type :\t$booktype:<br>";
echo "The book authourist :\t$bookauth:<br>";
echo "The book publish :\t$bookpublish:<br>";
echo "The book price:\t$bookprice:<br>";
echo "The book count:\t$bookcount:<br>";
echo "The total cost:\t$bookcost:<br>";
?>[em10][em10]

The total cost :900

??????

回复列表 (共1个回复)

沙发


<?php
error_reporting(E_ALL);
echo date("Y m D jS H:i:s:A L I");
echo"<br>";
$bookname='english';
$booktype='study';
$bookauth='meng_meng';
$bookpublish='guangzhou';
$bookprice=30;
$bookcount=3;
$bookcost=[color=FF0000]$bookprice*$bookprice;[/color]
echo "You had bought the book:\t$bookname:<br>";
echo "The book type :\t$booktype:<br>";
echo "The book authourist :\t$bookauth:<br>";
echo "The book publish :\t$bookpublish:<br>";
echo "The book price:\t$bookprice:<br>";
echo "The book count:\t$bookcount:<br>";
echo "The total cost:\t$bookcost:<br>";
?>

我来回复

您尚未登录,请登录后再回复。点此登录或注册