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.



Your result can be seen below.

Result of php executing





Full code of tour.php

  1. <?php
  2. $data = [
  3.     'country' => 'Турция',
  4.     'fromCities' => ['Киев'],
  5.     'stars' => [5,4], // не больше 2ух
  6.     'adultAmount' => 2, // от 1 до 4,
  7.     'childAmount' => 0,
  8.     'nightFrom' => 6, //от 6 ночей
  9.     'nightTill' => 8, //до 8 ночей
  10.     'dateFrom' => '2019-09-30', 
  11.     'dateTill' => '2019-10-10', 
  12.  
  13.  
  14.     // не обязательные
  15.     //'hotelsName' => ['Adam & Eve Hotel', 'Rixos Sungate'],
  16.     'mealType' => ['UAI','AI'],
  17.     //'priceFrom' => 100,
  18.     //'priceTill' => 1000,
  19.     //'currency' => 2, // 1-usd, 2-eur, 3-uah
  20. ];
  21. echo json_encode($data);
  22.  
File Description
  • tour
  • PHP Code
  • 05 Sep-2019
  • 607 Bytes
You can Share it: