I am fairly new to PHP. I have a function which checks the cost of price. I want to return the variable from this function to be used globally:
functio
function getDeliveryPrice($qew){ if ($qew=="1"){ $deliveryPrice="60"; } else { $deliveryPrice="20"; } return $deliveryPrice; } $price = getDeliveryPrice(12); echo $price; ?>