HTML
CSS
PHP
Deno
Examples
Do It Yourself
Blog
Type in your code below
Run
<?php //modified from 50 to 90 $buyer_amount = 90; //The item price $item_price = 70; if ($buyer_amount < $item_price) { echo "You do not have sufficient funds to purchase this item"; } else { echo 'You have successfully purchase this item, your change is '. ($buyer_amount - $item_price).''; } ?>