PHP笔记-商品价格例子
程序运行截图如下:源码如下:<?php const discount = 0.8; $fruit1 = "橙子"; $fruit2 = "柚子"; $fruit3 = "橘子"; $fruit1Num = 1; $fruit2Num = 2; $fruit3Num = 3; $fruit1Price = 6.88; $fruit2Price = 3.99; $fr