Jump to content

Convert an amount to a discounted


monkeybidz

Recommended Posts

I have a variable: $price

 

$price = "100.00";

 

I need to get 50% of 100.00 when another variable value = Yes:

 

if($discount = 'Yes')

 

When it is = to Yes, i need $price to = $price - 50% discount.

 

Can anyone help? I have had this same question answered before, but cannot seem to find some of my post recently.

 

Link to comment
https://forums.phpfreaks.com/topic/42753-convert-an-amount-to-a-discounted/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.