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' => 'Турция',
- 'fromCities' => ['Киев'],
- 'stars' => [5,4], // не больше 2ух
- 'adultAmount' => 2, // от 1 до 4,
- 'childAmount' => 0,
- 'nightFrom' => 6, //от 6 ночей
- 'nightTill' => 8, //до 8 ночей
- 'dateFrom' => '2019-09-30',
- 'dateTill' => '2019-10-10',
- // не обязательные
- //'hotelsName' => ['Adam & Eve Hotel', 'Rixos Sungate'],
- 'mealType' => ['UAI','AI'],
- //'priceFrom' => 100,
- //'priceTill' => 1000,
- //'currency' => 2, // 1-usd, 2-eur, 3-uah
- ];
- echo json_encode($data);