  | 
              
	              
	                
  
    
	 
        สอบถามเรื่องการรับค่า JSON อ่ะครับ ว่ามันผิดตรงไหน มัน error Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in มี ตัวอย่างด้านใน ครับ     | 
   
  
    |   | 
   
 
 
 
              
  
          
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 ลืม $ หรือเปล่าครับ 
Code (PHP) 
foreach($rates->taxes as $e=>taxes){ //ตรงนี้
	foreach($taxes->taxes as $f=>taxes){ //ตรงนี้
		echo "included		 ==> ".$taxes->amount."<BR>";
		echo "amount		 ==> ".$taxes->amount."<BR>";
		echo "currency		 ==> ".$taxes->currency."<BR>";
		echo "clientAmount	 ==> ".$taxes->clientAmount."<BR>";
		echo "clientCurrency ==> ".$taxes->clientCurrency."<BR>";
	}
	echo "allIncluded ==> ".$taxes->allIncluded."<BR>";
}
                        
               
               | 
             
            
              
			                
  ประวัติการแก้ไข 2017-09-22 15:53:08              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2017-09-22 15:51:17 | 
                        By :
                            zadstoms | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 พี่ครับ ผมแก้ไขตามแล้วแต่เมื่อว่า ตัวแปร $tax ทั้งหลาย มัน error ดังนี้ อ่ะครับ  
 
Warning: Invalid argument supplied for foreach() in C:\AppServ\www\hotelbed\hotels_available_by_specific_list_and_flexible_check_in_date.php on line 2760 
 
ส่วนตัวแปร $taxes->allIncluded ทำไมผมได้ค่าว่างอ่ะครับ จริงๆมันควรมีค่าน่ะครับ 
 
Code (PHP) 
			foreach($rates->taxes as $e=>$taxes){
				foreach($taxes->taxes as $f=>$tax){
					echo "included		 ==> ".$tax->amount."<BR>";
					echo "amount		 ==> ".$tax->amount."<BR>";
					echo "currency		 ==> ".$tax->currency."<BR>";
					echo "clientAmount	 ==> ".$tax->clientAmount."<BR>";
					echo "clientCurrency ==> ".$tax->clientCurrency."<BR>";
				}
				echo "allIncluded ==> ".$taxes->allIncluded."<BR>";
			}
                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2017-09-22 16:46:43 | 
                        By :
                            nut_ch31 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 ขอบคุณมากครับ ตอนนีไ้ด้ล่ะครับ ผมจะศึกษาต่อไปครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2017-09-22 17:32:45 | 
                        By :
                            nut_ch31 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |