1 2 3 4 5 6 7 8 9 10 11 12 13
<?php function priceWithVAT($val){ $priceVAT = $val * 1.2; $priceVAT = round($priceVAT, 2); return $priceVAT; } priceWithVAT(21.2134); if(isset($priceVAT)){ echo 'Y'; }else{ echo 'N'; } ?>
1
N