price order in restoran - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of price order in restoran.php
- <?php
- $hamburger = 4.95;
- $shake = 1.95;
- $cola = 0.85;
- $price=($hamburger*2)+$shake+$cola;
- echo $price, '\n';
- $taxRate = 7.5/100;
- $taxAmount = $price * $taxRate + $price;
- echo' ';
- echo $taxAmount;
- echo' ';
- $tip = 12.7*(16/100);
- echo $tip;
- echo' ';
- $endPrice = $taxAmount + $tip;
- echo $endPrice;
File Description
- price order in restoran
- PHP Code
- 08 Apr-2020
- 296 Bytes
You can Share it:
Latest PHP Pastes