[LTR]
به دستورالعمل زیر توجه کنید لطفا:
function add_tax($amount) {
$total = $amount * 1.09;
return $total;
}
$price = 16.00;
echo “Price before tax: $price <br>”;
echo “Price after tax: “;
echo add_tax($price);
سوال بنده این هستش که اینجا $Price چطور میشه که بصورت اتو ماتیک میره و جای $amount میشینه و جواب زیر رو ایجاد میکنه؟
Price before tax: 16
Price after tax: 17.44
function add_tax($amount) {
$total = $amount * 1.09;
return $total;
}
$price = 16.00;
echo “Price before tax: $price <br>”;
echo “Price after tax: “;
echo add_tax($price);
سوال بنده این هستش که اینجا $Price چطور میشه که بصورت اتو ماتیک میره و جای $amount میشینه و جواب زیر رو ایجاد میکنه؟
Price before tax: 16
Price after tax: 17.44