PHP Lab 9 & 10
PHP Lab 9 & 10
Objective:
Create a PHP script that simulates an online store checkout system using
control structures and loops.
Instructions:
Write a PHP script that performs the following tasks:
3. Use a while loop to simulate the customer adding items to the cart
until the total reaches or exceeds the randomly generated amount.
1. Credit Card
2. PayPal
3. Bank Transfer
4. Apple Pay
5. Google Pay
Payment Successful!