if ($occupation) {
// remove comma and multiply 1.4 and round up >=0.5 , php ต้องเอา คอมม่าออกจึงคำนวณได้
$plan1 = round(floatval(str_replace(',', '', $plan1)) * 1.4);
$plan2 = round(floatval(str_replace(',', '', $plan2)) * 1.4);
$plan3 = round(floatval(str_replace(',', '', $plan3)) * 1.4);
$plan4 = round(floatval(str_replace(',', '', $plan4)) * 1.4);
}
// คำนวณเสร็จจากด้านบนก็ใส่ คอมม่าเข้าไปเพื่อส่งต่อไปแสดงผล
$plan1 = number_format($plan1);
$plan2 = number_format($plan2);
$plan3 = number_format($plan3);
$plan4 = number_format($plan4);
// print the modified variables
echo $plan1 . '<br>';
echo $plan2 . '<br>';
echo $plan3 . '<br>';
echo $plan4 . '<br>';
เวอไนน์ไอคอร์ส
ประหยัดเวลากว่า 100 เท่า!
เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์
Categories
- ai (1)
- cat (1)
- computer internet (285)
- food (2)
- med (23)
- Music Movie (31)
- tool (43)
- ฮวงจุ้ย (9)
- Travel (69)
- Uncategorized (1,371)
- web (628)
- It’s okay that you are not okay
- อาบหรือว่ายน้ำเย็น
- 25 𝑻𝑹𝑼𝑻𝑯𝑺 𝑨𝑩𝑶𝑼𝑻 𝑻𝑶𝑼𝑮𝑯 𝑻𝑰𝑴𝑬𝑺
- Believe yourself
- The art of public speaking
- จะให้ความอายทำลายชีวิตคุณ
- 80/20
- Ikgai
- the art of being alone
- 40ปี
- สุมาอี้สอนลูก
- The rules of thinking
- เลิกเป็นคนดีแล้วชีวิตจะมีความสุข
- LED แบบ smd
- LED แสดงสถานะ
- บทเรียนชีวิต
- หาแนวคิดวินัยการเงิน
- ลูกน้องโง่เป็นเหยื่อของเจ้านายฉลาด เจ้านายฉลาดเป็นเหยือกของลูกน้องแกล้งโง่
- แค่วันละ 10 นาทีชีวิตจะดีขึ้นทุกๆวัน
- The confident mind