-1
下面的代碼了把基於這種情況發生elsehwere貨幣轉換航運成本的數字,但它與輸出許多小數位。我可以在這裏修改一些只會產生2位小數的數字嗎?
if(isset($_POST['ShippingMethod'])){
$order['data'] .= "\r\n ========== Shipping Cost ========== \r\n\r";
$order['data'] .="\r\n Shipping Method Cost: ". $_SESSION['currency_symbol'].$_POST['ShippingMethod']. " \r\n";
$form['price']['shipping'] +=$_POST['ShippingMethod'];
}