tengo un xml en el cual en uno de los nods tiene un atributo
<HotelRoom SHRUI="O4i+abUaQM+ohkvxTXOihQ==" onRequest="N">
quiero jalar el atributo SHRUI
mi cogio es el siguiente
Código PHP:
foreach($_hotel['AvailableRoom'] as $value)
{
$temp['HotelOccupancy']=$value['HotelOccupancy'];
$temp['HotelRoom']=$value['HotelRoom'];
$temp['SHRUI']=$value['HotelRoom']['SHRUI'];
foreach($temp['HotelOccupancy'] as $value)
{
$temp['RoomCount']=$value['Name'];
$temp['Occupancy']=$value['Occupancy'];
foreach($temp['Occupancy'] as $value)
{
$temp['AdultCount']=$value['AdultCount'];
$temp['ChildCount']=$value['ChildCount'];
}
}
foreach($temp['HotelRoom'] as $value)
{
$temp['Board']=$value['Board'];
$temp['RoomType']=$value['RoomType'];
$temp['Price']=$value['Price'];
foreach($temp['Price'] as $value)
{
$temp['Amount']=$value['Amount'];
}
}
$_hotelesroom[]=$temp;
}
y al mostrar uso esto y no funka me sale en blanco
Código PHP:
foreach($hotel['AvailableRoom'] as $hot)
{
echo = $hot['SHRUI'];
}