Codice PHP:

function People($id_package$id_room$id_treatment$days$inquire){
      
       
$rm = new rooms();
       
$pack = new packages();
       
       
$build = new builds();
       
$treatments_type $build->GetTreatments_type($id_room);

         foreach(
$treatments_type as $treatment_type){

         if(
$build->getTypeId() !== 1){
             echo 
"E' un hotel per num persone " $inquire->GetTotalPeople() ;
             for(
$i 1;$i<= $inquire->GetTotalPeople(); $i++){
         }
              
//echo "

<u>(ROOM $id_room)</u>[b]Trattamento$treatment_type [/b]</p>";
              unset(
$this->id_reductions);
              
$this->SearchReduction($id_package$id_room,  $treatment_type$i$inquire->GetAgePerson($i));
                   
              
$treatments = $rm->GetBasePrice($id_package$id_room$treatment_type);

                foreach(
$this->id_reductions as $id_reduction){

                  if(
$id_reduction !== 'NO'){
                       
$this->GetInfo($id_reduction);
                       
$price_adults[$treatment_type][$id_room] += $this->CalculatePriceTreatment($treatments['base_price'], $this->GetPrice(), $this->GetOperator());

                   }else{
                       
$price_adults[$treatment_type][$id_room] += $treatments['base_price'];
                   }

                   
               }
         if(
$build->getTypeId() !== 1){
           }
         }
                   
                    
$price_adults[$treatment_type][$id_room] = ($price_adults[$treatment_type][$id_room]) / (7) * ($days);
                    
$inquire->SetPriceAdults($id_room$treatment_type$price_adults[$treatment_type][$id_room]);
     }
      
  
      
   } 
La condizione è true perchè stampa la scritta "E' un hotel"