0

我不明白为什么这给了我一个 t 字符串语法错误。在我看来是正确的!有人可以帮我吗?我已经进行了几周的 php 学习尝试,只是试图理解这种混乱。我知道这是非常愚蠢的事情,但我无法弄清楚!

<?php 
// set up some variables 
// the toys 
$item1 = "X−ray specs"; 
$item2 = "Watch with built−in poison gas canister";
$item3 = "Exploding chewing gum"; 
// the price 
$item1_cost = 100; $item2_cost = 250; $item3_cost = 32; 
// the amount
$item1_qty = 1; $item2_qty = 2; $item3_qty = 15; 
// calculate cost for each item 
$item1_total = $item1_cost * $item1_qty;
$item2_total = $item2_cost * $item2_qty; 
$item3_total = $item3_cost * $item3_qty; 

// calculate grand total
$grand_total = $item1_total + $item2_total + $item3_total; 
//special secret agent discount − 10% 
$discount = 10; 
// which reduces total bill amount 
$amount = ($grand_total * 10)/100;
// the bottom line 

$net_total = $grand_total − $amount; 

?>
4

1 回答 1

2
于 2013-03-14T01:45:44.683 回答