tour - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of tour.php
- <?php
- $data = [
- 'country' => 'Турция',
- 'from_cities' => ['Киев', 'Херсон'],
- 'stars' => [5,4], // не больше 2ух
- 'adult_amount' => 2, // от 1 до 4,
- 'child_amount' => 0,
- 'night_from' => 6, //от 6 ночей
- 'night_till' => 8, //до 8 ночей
- 'date_from' => '2019-09-30',
- 'date_till' => '2019-10-10',
- // не обязательные
- //'hotels_name' => ['Adam & Eve Hotel', 'Rixos Sungate'],
- 'meal_type' => ['UAI','AI'],
- //'price_from' => 100,
- //'price_till' => 1000,
- //'currency' => 2, // 1-usd, 2-eur, 3-uah
- ];
- echo json_encode($data);