Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $percentage = 15;
- $price = array(100,200,300,400);
- foreach ($price AS $new_price)
- {
- $new_price = ($percentage / 100) * $price;
- echo $new_price;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement