Truck Showroom
Vehicle as $vehicle) { $vehicle->Extras = htmlentities(trim((string)$vehicle->Extras), ENT_QUOTES | ENT_HTML5); $vehicle->Comments = htmlentities(trim((string)$vehicle->Comments ), ENT_QUOTES | ENT_HTML5); } } $json = json_encode($xml); $a = json_decode($json, true); $b = []; $type = [‘Bakkie/Van’, ‘Bus’, ‘Freight Carrier’, ‘Freight Carrier / Chassis Cab’, ‘Horse / Tractor’, ‘Mini Bus’, ‘Panel Van’, ‘Truck’]; for ($i = 0; $i < count($a['Vehicle']); $i++) { if (in_array($a['Vehicle'][$i]['VehicleType'], $type)) { $b[] = $a['Vehicle'][$i]; } } $json = json_encode($b); unset($xml, $a, $b, $type); $json = str_replace('\n', '', $json); $json = str_replace('\t', '', $json); $json = str_replace('\f', '', $json); $json = str_replace('\r', '', $json); ?>
Lorem ipsum
- Brand:
- Model:
- Condition:
- Year:
- Price:
- Monthly Repayment:
- Region:
- Braking System:
- Cooling:
- Driving Configuraion:
- Engine Size:
- Fuel:
- Mileage
- Power:
- Sale Type:
- Suspension Type:
- Tare:
- Towing Device:
- Torque:
- Weight:
- Extras:
- Comments:
Contact seller
- Phone:
- Email: Click to email
- e-Brochure: Click to download