I have php code as below:
if($ptp_car_1 == "ptp_Denpasar_Ubud_fee_".$way."_car_1"){
$ptp_car_1 = "ptp_Ubud_Denpasar_fee_".$way."_car_1";
}
if($ptp_car_1 == "ptp_Denpasar_Tanah_Lot_fee_".$way."_car_1"){
$ptp_car_1 = "ptp_Tanah_Lot_Denpasar_fee_".$way."_car_1";
}
if($ptp_car_1 == "ptp_Denpasar_Sanur_fee_".$way."_car_1"){
$ptp_car_1 = "ptp_Sanur_Denpasar_fee_".$way."_car_1";
}
if($ptp_car_1 == "ptp_Denpasar_Seminyak_fee_".$way."_car_1"){
$ptp_car_1 = "ptp_Seminyak_Denpasar_fee_".$way."_car_1";
}
if($ptp_car_1 == "ptp_Denpasar_Kuta_fee_".$way."_car_1"){
$ptp_car_1 = "ptp_Kuta_Denpasar_fee_".$way."_car_1";
}
if($ptp_car_1 == "ptp_Denpasar_Jimbaran_fee_".$way."_car_1"){
$ptp_car_1 = "ptp_Jimbaran_Denpasar_fee_".$way."_car_1";
}
if($ptp_car_1 == "ptp_Denpasar_Nusa_Dua_fee_".$way."_car_1"){
$ptp_car_1 = "ptp_Nusa_Dua_Denpasar_fee_".$way."_car_1";
}
// many code over 1,000
How can i optimize it ? I want the page run faster, now is too slow for it.