Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Wagner Martins - SC

Imprimir array

Recommended Posts

Bom dia,

 

Não estou conseguindo imprimir os valores do array, poderiam me ajudar? Meu código é esse:

 

 

if ($locais_2['!HotelId']==$_GET['HotelId']){

print_r($locais_2['RoomType']);

foreach($locais_2['RoomType'] as $key214=>$val2){

echo "{$locais_2['RoomCategory']}";
}
}

 



O resultado do print_r(); é ese

 

 

Array ( [0] => Array ( [ContractType] => 0 [PricesAndAvailability] => Array ( [0] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability1 [!msdata:rowOrder] => 0 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 2897 [!Date] => 2013-12-20T00:00:00-02:00 [!Price] => 201 [!PriceNet] => 174.87 [!Tax] => 3 [!qtyAvailable] => 2 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [1] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability2 [!msdata:rowOrder] => 1 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 2897 [!Date] => 2013-12-21T00:00:00-02:00 [!Price] => 201 [!PriceNet] => 174.87 [!Tax] => 3 [!qtyAvailable] => 2 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [2] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability3 [!msdata:rowOrder] => 2 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 2897 [!Date] => 2013-12-22T00:00:00-02:00 [!Price] => 201 [!PriceNet] => 174.87 [!Tax] => 3 [!qtyAvailable] => 2 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) ) [!diffgr:id] => RoomType1 [!msdata:rowOrder] => 0 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 2897 [!Name] => SGL - LUX [!HotelId] => 1716 [!BoardBaseId] => 8 [!BoardBase] => CAFÉ DA MANHÃ [!BedTypeId] => 0 [!BedType] => [!AccomodationTypeId] => 1 [!AccomodationType] => SINGLE [!avrNightPrice] => 201 [!avrNightPriceNet] => 174.87 [!Tax] => 3 [!qtyAvailable] => 2 [!RoomCategoryId] => 4 [!RoomCategory] => LUXO ) [1] => Array ( [ContractType] => 0 [PricesAndAvailability] => Array ( [0] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability4 [!msdata:rowOrder] => 3 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 35737 [!Date] => 2013-12-20T00:00:00-02:00 [!Price] => 219 [!PriceNet] => 190.53 [!Tax] => 3 [!qtyAvailable] => 2 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [1] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability5 [!msdata:rowOrder] => 4 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 35737 [!Date] => 2013-12-21T00:00:00-02:00 [!Price] => 219 [!PriceNet] => 190.53 [!Tax] => 3 [!qtyAvailable] => 2 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [2] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability6 [!msdata:rowOrder] => 5 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 35737 [!Date] => 2013-12-22T00:00:00-02:00 [!Price] => 219 [!PriceNet] => 190.53 [!Tax] => 3 [!qtyAvailable] => 2 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) ) [!diffgr:id] => RoomType2 [!msdata:rowOrder] => 1 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 35737 [!Name] => SGL - LUX PREMIER [!HotelId] => 1716 [!BoardBaseId] => 8 [!BoardBase] => CAFÉ DA MANHÃ [!BedTypeId] => 0 [!BedType] => [!AccomodationTypeId] => 1 [!AccomodationType] => SINGLE [!avrNightPrice] => 219 [!avrNightPriceNet] => 190.53 [!Tax] => 3 [!qtyAvailable] => 2 [!RoomCategoryId] => 4 [!RoomCategory] => LUXO ) )

Compartilhar este post


Link para o post
Compartilhar em outros sites

Fiz assim:

 

 

$locais25=$locais_2['RoomType'];


foreach($locais25 as $key=>$val){


print_r ($val);
}

e me retornou isso:

 

Array ( [ContractType] => 0 [PricesAndAvailability] => Array ( [0] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability7 [!msdata:rowOrder] => 6 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64965 [!Date] => 2013-12-20T00:00:00-02:00 [!Price] => 300 [!PriceNet] => 261 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [1] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability8 [!msdata:rowOrder] => 7 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64965 [!Date] => 2013-12-21T00:00:00-02:00 [!Price] => 370 [!PriceNet] => 321.9 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [2] => Array ( [RateType] => PROMOCIONAL [!diffgr:id] => PricesAndAvailability9 [!msdata:rowOrder] => 8 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64965 [!Date] => 2013-12-22T00:00:00-02:00 [!Price] => 330 [!PriceNet] => 287.1 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 1 [!AssinaFatura] => 1 ) ) [!diffgr:id] => RoomType1 [!msdata:rowOrder] => 0 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64965 [!Name] => SGL - STD FAP [!HotelId] => 113766 [!BoardBaseId] => 6 [!BoardBase] => PENSÃO COMPLETA [!BedTypeId] => 0 [!BedType] => [!AccomodationTypeId] => 1 [!AccomodationType] => SINGLE [!avrNightPrice] => 333.33 [!avrNightPriceNet] => 290 [!Tax] => 0 [!qtyAvailable] => 5 [!RoomCategoryId] => 1 [!RoomCategory] => STANDARD )
Array ( [ContractType] => 0 [PricesAndAvailability] => Array ( [0] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability1 [!msdata:rowOrder] => 0 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64961 [!Date] => 2013-12-20T00:00:00-02:00 [!Price] => 170 [!PriceNet] => 147.9 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [1] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability2 [!msdata:rowOrder] => 1 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64961 [!Date] => 2013-12-21T00:00:00-02:00 [!Price] => 250 [!PriceNet] => 217.5 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [2] => Array ( [RateType] => PROMOCIONAL [!diffgr:id] => PricesAndAvailability3 [!msdata:rowOrder] => 2 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64961 [!Date] => 2013-12-22T00:00:00-02:00 [!Price] => 200 [!PriceNet] => 174 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 1 [!AssinaFatura] => 1 ) ) [!diffgr:id] => RoomType2 [!msdata:rowOrder] => 1 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64961 [!Name] => SGL - STD [!HotelId] => 113766 [!BoardBaseId] => 8 [!BoardBase] => CAFÉ DA MANHÃ [!BedTypeId] => 0 [!BedType] => [!AccomodationTypeId] => 1 [!AccomodationType] => SINGLE [!avrNightPrice] => 206.67 [!avrNightPriceNet] => 179.8 [!Tax] => 0 [!qtyAvailable] => 5 [!RoomCategoryId] => 1 [!RoomCategory] => STANDARD )
Array ( [ContractType] => 0 [PricesAndAvailability] => Array ( [0] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability4 [!msdata:rowOrder] => 3 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64963 [!Date] => 2013-12-20T00:00:00-02:00 [!Price] => 235 [!PriceNet] => 204.45 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [1] => Array ( [RateType] => NORMAL [!diffgr:id] => PricesAndAvailability5 [!msdata:rowOrder] => 4 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64963 [!Date] => 2013-12-21T00:00:00-02:00 [!Price] => 310 [!PriceNet] => 269.7 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 0 [!AssinaFatura] => 1 ) [2] => Array ( [RateType] => PROMOCIONAL [!diffgr:id] => PricesAndAvailability6 [!msdata:rowOrder] => 5 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64963 [!Date] => 2013-12-22T00:00:00-02:00 [!Price] => 270 [!PriceNet] => 234.9 [!Tax] => 0 [!qtyAvailable] => 5 [!RateTypeId] => 1 [!AssinaFatura] => 1 ) ) [!diffgr:id] => RoomType3 [!msdata:rowOrder] => 2 [!diffgr:hasChanges] => inserted [!RoomTypeId] => 64963 [!Name] => SGL - STD MAP [!HotelId] => 113766 [!BoardBaseId] => 5 [!BoardBase] => MEIA PENSÃO [!BedTypeId] => 0 [!BedType] => [!AccomodationTypeId] => 1 [!AccomodationType] => SINGLE [!avrNightPrice] => 271.67 [!avrNightPriceNet] => 236.35 [!Tax] => 0 [!qtyAvailable] => 5 [!RoomCategoryId] => 1 [!RoomCategory] => STANDARD )

 

Quero só imprimir o array [!avrNightPrice], como posso fazer isso?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Poxa cara. Tá muito difícil entender esse array. Mas tenta rastrear onde está o que você quer exibir e usa no foreach.

tipo foreache($locais_2[0][0] as $key => $val)

Compartilhar este post


Link para o post
Compartilhar em outros sites

usa um foreach dentro de foreach porque não e um array SIMPLES e sim uma matriz.

Compartilhar este post


Link para o post
Compartilhar em outros sites

para vacilitar a visualização do print_r

 

coloque

 

<?php
$var = array(...);

echo "<pre>";
print_r($var);
echo "</pre>";
?>

pegue o retorno do print e coloque ai, por que do modo que você coloco não da para entender esta tudo misturado.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Ok, fiz isso, esta ai o resultado:

 


 

Array
(
    [ContractType] => 0
    [PricesAndAvailability] => Array
        (
            [0] => Array
                (
                    [RateType] => NORMAL
                    [!diffgr:id] => PricesAndAvailability7
                    [!msdata:rowOrder] => 6
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64965
                    [!Date] => 2013-12-20T00:00:00-02:00
                    [!Price] => 300
                    [!PriceNet] => 261
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 0
                    [!AssinaFatura] => 1
                )

            [1] => Array
                (
                    [RateType] => NORMAL
                    [!diffgr:id] => PricesAndAvailability8
                    [!msdata:rowOrder] => 7
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64965
                    [!Date] => 2013-12-21T00:00:00-02:00
                    [!Price] => 370
                    [!PriceNet] => 321.9
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 0
                    [!AssinaFatura] => 1
                )

            [2] => Array
                (
                    [RateType] => PROMOCIONAL
                    [!diffgr:id] => PricesAndAvailability9
                    [!msdata:rowOrder] => 8
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64965
                    [!Date] => 2013-12-22T00:00:00-02:00
                    [!Price] => 330
                    [!PriceNet] => 287.1
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 1
                    [!AssinaFatura] => 1
                )

        )

    [!diffgr:id] => RoomType1
    [!msdata:rowOrder] => 0
    [!diffgr:hasChanges] => inserted
    [!RoomTypeId] => 64965
    [!Name] => SGL - STD FAP
    [!HotelId] => 113766
    [!BoardBaseId] => 6
    [!BoardBase] => PENSÃO COMPLETA
    [!BedTypeId] => 0
    [!BedType] =>  
    [!AccomodationTypeId] => 1
    [!AccomodationType] => SINGLE
    [!avrNightPrice] => 333.33
    [!avrNightPriceNet] => 290
    [!Tax] => 0
    [!qtyAvailable] => 5
    [!RoomCategoryId] => 1
    [!RoomCategory] => STANDARD
)

Array
(
    [ContractType] => 0
    [PricesAndAvailability] => Array
        (
            [0] => Array
                (
                    [RateType] => NORMAL
                    [!diffgr:id] => PricesAndAvailability1
                    [!msdata:rowOrder] => 0
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64961
                    [!Date] => 2013-12-20T00:00:00-02:00
                    [!Price] => 170
                    [!PriceNet] => 147.9
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 0
                    [!AssinaFatura] => 1
                )

            [1] => Array
                (
                    [RateType] => NORMAL
                    [!diffgr:id] => PricesAndAvailability2
                    [!msdata:rowOrder] => 1
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64961
                    [!Date] => 2013-12-21T00:00:00-02:00
                    [!Price] => 250
                    [!PriceNet] => 217.5
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 0
                    [!AssinaFatura] => 1
                )

            [2] => Array
                (
                    [RateType] => PROMOCIONAL
                    [!diffgr:id] => PricesAndAvailability3
                    [!msdata:rowOrder] => 2
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64961
                    [!Date] => 2013-12-22T00:00:00-02:00
                    [!Price] => 200
                    [!PriceNet] => 174
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 1
                    [!AssinaFatura] => 1
                )

        )

    [!diffgr:id] => RoomType2
    [!msdata:rowOrder] => 1
    [!diffgr:hasChanges] => inserted
    [!RoomTypeId] => 64961
    [!Name] => SGL - STD
    [!HotelId] => 113766
    [!BoardBaseId] => 8
    [!BoardBase] => CAFÉ DA MANHÃ
    [!BedTypeId] => 0
    [!BedType] =>  
    [!AccomodationTypeId] => 1
    [!AccomodationType] => SINGLE
    [!avrNightPrice] => 206.67
    [!avrNightPriceNet] => 179.8
    [!Tax] => 0
    [!qtyAvailable] => 5
    [!RoomCategoryId] => 1
    [!RoomCategory] => STANDARD
)

Array
(
    [ContractType] => 0
    [PricesAndAvailability] => Array
        (
            [0] => Array
                (
                    [RateType] => NORMAL
                    [!diffgr:id] => PricesAndAvailability4
                    [!msdata:rowOrder] => 3
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64963
                    [!Date] => 2013-12-20T00:00:00-02:00
                    [!Price] => 235
                    [!PriceNet] => 204.45
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 0
                    [!AssinaFatura] => 1
                )

            [1] => Array
                (
                    [RateType] => NORMAL
                    [!diffgr:id] => PricesAndAvailability5
                    [!msdata:rowOrder] => 4
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64963
                    [!Date] => 2013-12-21T00:00:00-02:00
                    [!Price] => 310
                    [!PriceNet] => 269.7
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 0
                    [!AssinaFatura] => 1
                )

            [2] => Array
                (
                    [RateType] => PROMOCIONAL
                    [!diffgr:id] => PricesAndAvailability6
                    [!msdata:rowOrder] => 5
                    [!diffgr:hasChanges] => inserted
                    [!RoomTypeId] => 64963
                    [!Date] => 2013-12-22T00:00:00-02:00
                    [!Price] => 270
                    [!PriceNet] => 234.9
                    [!Tax] => 0
                    [!qtyAvailable] => 5
                    [!RateTypeId] => 1
                    [!AssinaFatura] => 1
                )

        )

    [!diffgr:id] => RoomType3
    [!msdata:rowOrder] => 2
    [!diffgr:hasChanges] => inserted
    [!RoomTypeId] => 64963
    [!Name] => SGL - STD MAP
    [!HotelId] => 113766
    [!BoardBaseId] => 5
    [!BoardBase] => MEIA PENSÃO
    [!BedTypeId] => 0
    [!BedType] =>  
    [!AccomodationTypeId] => 1
    [!AccomodationType] => SINGLE
    [!avrNightPrice] => 271.67
    [!avrNightPriceNet] => 236.35
    [!Tax] => 0
    [!qtyAvailable] => 5
    [!RoomCategoryId] => 1
    [!RoomCategory] => STANDARD
)

Compartilhar este post


Link para o post
Compartilhar em outros sites

você quer exibir todos esses arrays ou tem algum em especifico?

Compartilhar este post


Link para o post
Compartilhar em outros sites

so colocar

$var = array(...);
echo $var['!avrNightPrice'];

 

 

caso não der certo e pq vc coloco o print_r dentro do foreach.

 

 

 

se for de um print_r sem esta dentro do foreach.

Compartilhar este post


Link para o post
Compartilhar em outros sites

cara da um print_r em

$locais_2['RoomType'];

 

se for aquilo que você posto

 

so colocar assim

 

$locais_2['RoomType']['!avrNightPrice'];



ñ prescisa dar foreach

Compartilhar este post


Link para o post
Compartilhar em outros sites

dei um print_r em $locais_2['RoomType']; e exibiu esse array

 

Array(    [0] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability7                            [!msdata:rowOrder] => 6                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 300                            [!PriceNet] => 261                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability8                            [!msdata:rowOrder] => 7                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 370                            [!PriceNet] => 321.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability9                            [!msdata:rowOrder] => 8                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 330                            [!PriceNet] => 287.1                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType1            [!msdata:rowOrder] => 0            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64965            [!Name] => SGL - STD FAP            [!HotelId] => 113766            [!BoardBaseId] => 6            [!BoardBase] => PENSÃO COMPLETA            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 333.33            [!avrNightPriceNet] => 290            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        )    [1] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability1                            [!msdata:rowOrder] => 0                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 170                            [!PriceNet] => 147.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability2                            [!msdata:rowOrder] => 1                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 250                            [!PriceNet] => 217.5                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability3                            [!msdata:rowOrder] => 2                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 200                            [!PriceNet] => 174                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType2            [!msdata:rowOrder] => 1            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64961            [!Name] => SGL - STD            [!HotelId] => 113766            [!BoardBaseId] => 8            [!BoardBase] => CAFÉ DA MANHÃ            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 206.67            [!avrNightPriceNet] => 179.8            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        )    [2] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability4                            [!msdata:rowOrder] => 3                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 235                            [!PriceNet] => 204.45                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability5                            [!msdata:rowOrder] => 4                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 310                            [!PriceNet] => 269.7                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability6                            [!msdata:rowOrder] => 5                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 270                            [!PriceNet] => 234.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType3            [!msdata:rowOrder] => 2            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64963            [!Name] => SGL - STD MAP            [!HotelId] => 113766            [!BoardBaseId] => 5            [!BoardBase] => MEIA PENSÃO            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 271.67            [!avrNightPriceNet] => 236.35            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        ))
Array(    [0] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability7                            [!msdata:rowOrder] => 6                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 300                            [!PriceNet] => 261                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability8                            [!msdata:rowOrder] => 7                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 370                            [!PriceNet] => 321.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability9                            [!msdata:rowOrder] => 8                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 330                            [!PriceNet] => 287.1                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType1            [!msdata:rowOrder] => 0            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64965            [!Name] => SGL - STD FAP            [!HotelId] => 113766            [!BoardBaseId] => 6            [!BoardBase] => PENSÃO COMPLETA            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 333.33            [!avrNightPriceNet] => 290            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        )    [1] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability1                            [!msdata:rowOrder] => 0                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 170                            [!PriceNet] => 147.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability2                            [!msdata:rowOrder] => 1                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 250                            [!PriceNet] => 217.5                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability3                            [!msdata:rowOrder] => 2                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 200                            [!PriceNet] => 174                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType2            [!msdata:rowOrder] => 1            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64961            [!Name] => SGL - STD            [!HotelId] => 113766            [!BoardBaseId] => 8            [!BoardBase] => CAFÉ DA MANHÃ            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 206.67            [!avrNightPriceNet] => 179.8            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        )    [2] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability4                            [!msdata:rowOrder] => 3                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 235                            [!PriceNet] => 204.45                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability5                            [!msdata:rowOrder] => 4                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 310                            [!PriceNet] => 269.7                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability6                            [!msdata:rowOrder] => 5                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 270                            [!PriceNet] => 234.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType3            [!msdata:rowOrder] => 2            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64963            [!Name] => SGL - STD MAP            [!HotelId] => 113766            [!BoardBaseId] => 5            [!BoardBase] => MEIA PENSÃO            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 271.67            [!avrNightPriceNet] => 236.35            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        ))
Array(    [0] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability7                            [!msdata:rowOrder] => 6                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 300                            [!PriceNet] => 261                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability8                            [!msdata:rowOrder] => 7                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 370                            [!PriceNet] => 321.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability9                            [!msdata:rowOrder] => 8                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64965                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 330                            [!PriceNet] => 287.1                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType1            [!msdata:rowOrder] => 0            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64965            [!Name] => SGL - STD FAP            [!HotelId] => 113766            [!BoardBaseId] => 6            [!BoardBase] => PENSÃO COMPLETA            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 333.33            [!avrNightPriceNet] => 290            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        )    [1] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability1                            [!msdata:rowOrder] => 0                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 170                            [!PriceNet] => 147.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability2                            [!msdata:rowOrder] => 1                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 250                            [!PriceNet] => 217.5                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability3                            [!msdata:rowOrder] => 2                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64961                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 200                            [!PriceNet] => 174                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType2            [!msdata:rowOrder] => 1            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64961            [!Name] => SGL - STD            [!HotelId] => 113766            [!BoardBaseId] => 8            [!BoardBase] => CAFÉ DA MANHÃ            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 206.67            [!avrNightPriceNet] => 179.8            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        )    [2] => Array        (            [ContractType] => 0            [PricesAndAvailability] => Array                (                    [0] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability4                            [!msdata:rowOrder] => 3                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-20T00:00:00-02:00                            [!Price] => 235                            [!PriceNet] => 204.45                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [1] => Array                        (                            [RateType] => NORMAL                            [!diffgr:id] => PricesAndAvailability5                            [!msdata:rowOrder] => 4                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-21T00:00:00-02:00                            [!Price] => 310                            [!PriceNet] => 269.7                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 0                            [!AssinaFatura] => 1                        )                    [2] => Array                        (                            [RateType] => PROMOCIONAL                            [!diffgr:id] => PricesAndAvailability6                            [!msdata:rowOrder] => 5                            [!diffgr:hasChanges] => inserted                            [!RoomTypeId] => 64963                            [!Date] => 2013-12-22T00:00:00-02:00                            [!Price] => 270                            [!PriceNet] => 234.9                            [!Tax] => 0                            [!qtyAvailable] => 5                            [!RateTypeId] => 1                            [!AssinaFatura] => 1                        )                )            [!diffgr:id] => RoomType3            [!msdata:rowOrder] => 2            [!diffgr:hasChanges] => inserted            [!RoomTypeId] => 64963            [!Name] => SGL - STD MAP            [!HotelId] => 113766            [!BoardBaseId] => 5            [!BoardBase] => MEIA PENSÃO            [!BedTypeId] => 0            [!BedType] =>              [!AccomodationTypeId] => 1            [!AccomodationType] => SINGLE            [!avrNightPrice] => 271.67            [!avrNightPriceNet] => 236.35            [!Tax] => 0            [!qtyAvailable] => 5            [!RoomCategoryId] => 1            [!RoomCategory] => STANDARD        ))

Compartilhar este post


Link para o post
Compartilhar em outros sites

testa assim

 

dessa forma vai acessar a array que esta

RoomType=>0=>!avrNightPrice
echo $locais_2['RoomType'][0]['!avrNightPrice'];

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.