How to use foreach function in the the case of arrays of arrays
<p>I have an array which contains sub arrays. The content of that array is as bellow.</p>

<pre><code>Array
(

        [AvailRequest] =&gt; Array
(
[Trip] =&gt; ONE
[Origin] =&gt; BLR
[Destination] =&gt; CMB
[DepartDate] =&gt; 2013-05-05
[ReturnDate] =&gt; 2013-05-10
[AdultPax] =&gt; 1
[ChildPax] =&gt; 0
[InfantPax] =&gt; 0
[Currency] =&gt; INR
[PreferredClass] =&gt; E
[Eticket] =&gt; true
[Clientid] =&gt; 
[Clienttype] =&gt; 
[PreferredAirline] =&gt; Array
(
)

)

[AvailResponse] =&gt; Array
(
[OriginDestinationOptions] =&gt; Array
(
[OriginDestinationOption] =&gt; Array
(
[0] =&gt; Array
(
[FareDetails] =&gt; Array
(
[ActualBaseFare] =&gt; 5250
[Tax] =&gt; 3980
[STax] =&gt; 0
[TCharge] =&gt; 0
[SCharge] =&gt; 0
[TDiscount] =&gt; 0
[TMarkup] =&gt; 0
[TPartnerCommission] =&gt; 0
[TSdiscount] =&gt; 0
[FareBreakup] =&gt; Array
(
[FareAry] =&gt; Array
(
[Fare] =&gt; Array
(
[PsgrType] =&gt; ADT
[BaseFare] =&gt; 5250
[Tax] =&gt; 3980
[TaxDataAry] =&gt; Array
(
[TaxData] =&gt; Array
(
[0] =&gt; Array
    (
        [Country] =&gt; IN
        [Amt] =&gt; 00000260
    )

[1] =&gt; Array
    (
        [Country] =&gt; JN
        [Amt] =&gt; 00000412
    )

[2] =&gt; Array
    (
        [Country] =&gt; WO
        [Amt] =&gt; 00000225
    )

[3] =&gt; Array
    (
        [Country] =&gt; YQ
        [Amt] =&gt; 00002983
    )

[4] =&gt; Array
    (
        [Country] =&gt; YR
        [Amt] =&gt; 00000100
    )

[5] =&gt; Array
    (
        [Country] =&gt; Other
        [Amt] =&gt; 0
    )

)

)

)

)

)

[ocTax] =&gt; 0
)

[onward] =&gt; Array
(
[FlightSegments] =&gt; Array
(
[FlightSegment] =&gt; Array
(
[0] =&gt; Array
(
[AirEquipType] =&gt; 737
[ArrivalAirportCode] =&gt; MAA
[ArrivalAirportName] =&gt; CHENNAI
[ArrivalDateTime] =&gt; 2013-05-05T11:25:00
[DepartureAirportCode] =&gt; BLR
[DepartureAirportName] =&gt; BANGALORE
[DepartureDateTime] =&gt; 2013-05-05T10:25:00
[FlightNumber] =&gt; 2308
[MarketingAirlineCode] =&gt; 9W
[OperatingAirlineCode] =&gt; 9W
[OperatingAirlineName] =&gt; Jet Airways 
[OperatingAirlineFlightNumber] =&gt; 2308
[NumStops] =&gt; 0
[LinkSellAgrmnt] =&gt; SS
[Conx] =&gt; Y
[AirpChg] =&gt; N
[InsideAvailOption] =&gt; N
[GenTrafRestriction] =&gt; ?
[DaysOperates] =&gt; YNNNNNN
[JrnyTm] =&gt; 570
[EndDt] =&gt; 20130505
[StartTerminal] =&gt; ?
[EndTerminal] =&gt; D
[FltTm] =&gt; 60
[LSAInd] =&gt; Y
[Mile] =&gt; 168
[BookingClass] =&gt; Array
(
[Availability] =&gt; 007
[BIC] =&gt; T
)

[BookingClassFare] =&gt; Array
(
[bookingclass] =&gt; T
[classType] =&gt; Economy
[farebasiscode] =&gt; Z4zAhRL7boXLdF8E7pg/Gg==
[Rule] =&gt; Cancellation Penalty: All bookings done are subject to the cancellation penalty levied by the respective airline.
In addition to the airline's cancellation penalty, we charge a service fee of Rs. 200 per passenger for all cancellations.|Date Change Penalty: In addition to the airline's date change penalty, we charge a service fee of Rs. 250 per passenger for any date changes.|
)

)

[1] =&gt; Array
(
[AirEquipType] =&gt; 737
[ArrivalAirportCode] =&gt; CMB
[ArrivalAirportName] =&gt; Colombo
[ArrivalDateTime] =&gt; 2013-05-05T19:55:00
[DepartureAirportCode] =&gt; MAA
[DepartureAirportName] =&gt; CHENNAI
[DepartureDateTime] =&gt; 2013-05-05T18:30:00
[FlightNumber] =&gt; 252
[MarketingAirlineCode] =&gt; 9W
[OperatingAirlineCode] =&gt; 9W
[OperatingAirlineName] =&gt; Jet Airways 
[OperatingAirlineFlightNumber] =&gt; 252
[NumStops] =&gt; 0
[LinkSellAgrmnt] =&gt; SS
[Conx] =&gt; N
[AirpChg] =&gt; N
[InsideAvailOption] =&gt; N
[GenTrafRestriction] =&gt; ?
[DaysOperates] =&gt; YNNNNNN
[JrnyTm] =&gt; 570
[EndDt] =&gt; 20130505
[StartTerminal] =&gt; I
[EndTerminal] =&gt; ?
[FltTm] =&gt; 85
[LSAInd] =&gt; Y
[Mile] =&gt; 402
[BookingClass] =&gt; Array
(
[Availability] =&gt; 007
[BIC] =&gt; Q
)

[BookingClassFare] =&gt; Array
(
[bookingclass] =&gt; Q
[classType] =&gt; Economy
[farebasiscode] =&gt; Z4zAhRL7boXLdF8E7pg/Gg==
[Rule] =&gt; Cancellation Penalty: All bookings done are subject to the cancellation penalty levied by the respective airline.
In addition to the airline's cancellation penalty, we charge a service fee of Rs. 200 per passenger for all cancellations.|Date Change Penalty: In addition to the airline's date change penalty, we charge a service fee of Rs. 250 per passenger for any date changes.|
)

)

)

)

)

[Return] =&gt; Array
(
)

[id] =&gt; arzoo20
[key] =&gt; jT9o8XSks4Bf68R2DgKcVEb0gG2ZuxB2y+DauYeSiF3QweTiPhdGIWgoifR/a2Cj7pCpm05L2QnD
vXFXubDdIyuoEEf9FbAN4z7uuUBbuJWfy8uNPG/9b2fi6uU8d/jPtkPz+QotFGxf68R2DgKcVAxl
n+JT2sq20MHk4j4XRiFoKIn0f2tgo+sVQZmUH8fjjct7YYgqWIoUUZ48kBq4e4V1i7vZuywrLDDy
eF89tBO3AlP4UvcRhPpnSvkiAr2L00RIQ3Q3WcWoeJyfwbWuBcBoxNlsc5Rcw71xV7mw3SOMG41f
vdQZIl/rxHYOApxUgFYoNoctSwTkUKibZHahg2fi6uU8d/jPAJdXKqYIvc7v3xbDmqRTwho4syt1
E7x46xVBmZQfx+ONy3thiCpYikgRopJOZai5w71xV7mw3SOesti0ItOrM+qV6E/q3ryX4z7uuUBb
uJVda06JiVzmQQR9veF6y0bRcjckHdyE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2j/U0d44GpAUHQLWmJgMLQm8WMNC5fDhDKShPUbVyE7F04/yYsB/nk1b
nBvGLM3Htbx7NGKQfdaRBAgvoSzNx7W8ezRi/dTqd6KPbtANxNRL4esrbtDB5OI+F0Yh5tQnacTr
bMjQweTiPhdGIRPGZkM1WLyW+mdK+SICvYt9r9ByVqdVqqLvE2QtpL7nX+vEdg4CnFQgdHEElSxG
oKEfJcGxYZN4y0wCTwW+1do9QrUro5miOg==
)

[1] =&gt; Array
(
[FareDetails] =&gt; Array
(
[ActualBaseFare] =&gt; 5250
[Tax] =&gt; 3980
[STax] =&gt; 0
[TCharge] =&gt; 0
[SCharge] =&gt; 0
[TDiscount] =&gt; 0
[TMarkup] =&gt; 0
[TPartnerCommission] =&gt; 0
[TSdiscount] =&gt; 0
[FareBreakup] =&gt; Array
(
[FareAry] =&gt; Array
(
[Fare] =&gt; Array
(
[PsgrType] =&gt; ADT
[BaseFare] =&gt; 5250
[Tax] =&gt; 3980
[TaxDataAry] =&gt; Array
(
[TaxData] =&gt; Array
(
[0] =&gt; Array
    (
        [Country] =&gt; IN
        [Amt] =&gt; 00000260
    )

[1] =&gt; Array
    (
        [Country] =&gt; JN
        [Amt] =&gt; 00000412
    )

[2] =&gt; Array
    (
        [Country] =&gt; WO
        [Amt] =&gt; 00000225
    )

[3] =&gt; Array
    (
        [Country] =&gt; YQ
        [Amt] =&gt; 00002983
    )

[4] =&gt; Array
    (
        [Country] =&gt; YR
        [Amt] =&gt; 00000100
    )

[5] =&gt; Array
    (
        [Country] =&gt; Other
        [Amt] =&gt; 0
    )

)

)

)

)

)

[ocTax] =&gt; 0
)

[onward] =&gt; Array
(
[FlightSegments] =&gt; Array
(
[FlightSegment] =&gt; Array
(
[0] =&gt; Array
(
[AirEquipType] =&gt; AT7
[ArrivalAirportCode] =&gt; MAA
[ArrivalAirportName] =&gt; CHENNAI
[ArrivalDateTime] =&gt; 2013-05-05T23:25:00
[DepartureAirportCode] =&gt; BLR
[DepartureAirportName] =&gt; BANGALORE
[DepartureDateTime] =&gt; 2013-05-05T22:15:00
[FlightNumber] =&gt; 2736
[MarketingAirlineCode] =&gt; 9W
[OperatingAirlineCode] =&gt; 9W
[OperatingAirlineName] =&gt; Jet Airways 
[OperatingAirlineFlightNumber] =&gt; 2736
[NumStops] =&gt; 0
[LinkSellAgrmnt] =&gt; SS
[Conx] =&gt; Y
[AirpChg] =&gt; N
[InsideAvailOption] =&gt; N
[GenTrafRestriction] =&gt; ?
[DaysOperates] =&gt; YNNNNNN
[JrnyTm] =&gt; 1300
[EndDt] =&gt; 20130505
[StartTerminal] =&gt; ?
[EndTerminal] =&gt; D
[FltTm] =&gt; 70
[LSAInd] =&gt; Y
[Mile] =&gt; 168
[BookingClass] =&gt; Array
(
[Availability] =&gt; 007
[BIC] =&gt; T
)

[BookingClassFare] =&gt; Array
(
[bookingclass] =&gt; T
[classType] =&gt; Economy
[farebasiscode] =&gt; Z4zAhRL7boXLdF8E7pg/Gg==
[Rule] =&gt; Cancellation Penalty: All bookings done are subject to the cancellation penalty levied by the respective airline.
In addition to the airline's cancellation penalty, we charge a service fee of Rs. 200 per passenger for all cancellations.|Date Change Penalty: In addition to the airline's date change penalty, we charge a service fee of Rs. 250 per passenger for any date changes.|
)

)

[1] =&gt; Array
(
[AirEquipType] =&gt; 737
[ArrivalAirportCode] =&gt; CMB
[ArrivalAirportName] =&gt; Colombo
[ArrivalDateTime] =&gt; 2013-05-06T19:55:00
[DepartureAirportCode] =&gt; MAA
[DepartureAirportName] =&gt; CHENNAI
[DepartureDateTime] =&gt; 2013-05-06T18:30:00
[FlightNumber] =&gt; 252
[MarketingAirlineCode] =&gt; 9W
[OperatingAirlineCode] =&gt; 9W
[OperatingAirlineName] =&gt; Jet Airways 
[OperatingAirlineFlightNumber] =&gt; 252
[NumStops] =&gt; 0
[LinkSellAgrmnt] =&gt; SS
[Conx] =&gt; N
[AirpChg] =&gt; N
[InsideAvailOption] =&gt; N
[GenTrafRestriction] =&gt; ?
[DaysOperates] =&gt; NYNNNNN
[JrnyTm] =&gt; 1300
[EndDt] =&gt; 20130506
[StartTerminal] =&gt; I
[EndTerminal] =&gt; ?
[FltTm] =&gt; 85
[LSAInd] =&gt; Y
[Mile] =&gt; 402
[BookingClass] =&gt; Array
(
[Availability] =&gt; 007
[BIC] =&gt; Q
)

[BookingClassFare] =&gt; Array
(
[bookingclass] =&gt; Q
[classType] =&gt; Economy
[farebasiscode] =&gt; Z4zAhRL7boXLdF8E7pg/Gg==
[Rule] =&gt; Cancellation Penalty: All bookings done are subject to the cancellation penalty levied by the respective airline.
In addition to the airline's cancellation penalty, we charge a service fee of Rs. 200 per passenger for all cancellations.|Date Change Penalty: In addition to the airline's date change penalty, we charge a service fee of Rs. 250 per passenger for any date changes.|
)

)

)

)

)

[Return] =&gt; Array
(
)

[id] =&gt; arzoo21
[key] =&gt; LGqyrlHGfTRf68R2DgKcVEb0gG2ZuxB2y+DauYeSiF3QweTiPhdGIWgoifR/a2Cj7pCpm05L2QnD
vXFXubDdIyuoEEf9FbAN4z7uuUBbuJWfy8uNPG/9b2fi6uU8d/jPtkPz+QotFGxf68R2DgKcVAxl
n+JT2sq20MHk4j4XRiFoKIn0f2tgo+sVQZmUH8fjjct7YYgqWIoUUZ48kBq4e4V1i7vZuywrLDDy
eF89tBO3AlP4UvcRhPpnSvkiAr2L00RIQ3Q3WcWoeJyfwbWuBTVGkVJ6dedZw71xV7mw3SOMG41f
vdQZIl/rxHYOApxUgFYoNoctSwTkUKibZHahg2fi6uU8d/jPAJdXKqYIvc7v3xbDmqRTwhltxinE
JKTa6xVBmZQfx+ONy3thiCpYikgRopJOZai5w71xV7mw3SOesti0ItOrM+qV6E/q3ryX4z7uuUBb
uJVda06JiVzmQQR9veF6y0bRIKp8gTNTb4LQweTiPhdGIWgoifR/a2CjWr3eMWg0Kj3DvXFXubDd
I75VFMSf1uBcZ+Lq5Tx3+M80wx+Qbml/2sYHugf2W7duhXWLu9m7LCu1fNZ0JD1Dq3KE2FJK4F8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I+F0Yh5tQnacTr
bMjQweTiPhdGIRPGZkM1WLyW+mdK+SICvYt9r9ByVqdVqqLvE2QtpL7nX+vEdg4CnFQgdHEElSxG
oKEfJcGxYZN4y0wCTwW+1do9QrUro5miOg==
)

[2] =&gt; Array
(
[FareDetails] =&gt; Array
(
[ActualBaseFare] =&gt; 5250
[Tax] =&gt; 3980
[STax] =&gt; 0
[TCharge] =&gt; 0
[SCharge] =&gt; 0
[TDiscount] =&gt; 0
[TMarkup] =&gt; 0
[TPartnerCommission] =&gt; 0
[TSdiscount] =&gt; 0
[FareBreakup] =&gt; Array
(
[FareAry] =&gt; Array
(
[Fare] =&gt; Array
(
[PsgrType] =&gt; ADT
[BaseFare] =&gt; 5250
[Tax] =&gt; 3980
[TaxDataAry] =&gt; Array
(
[TaxData] =&gt; Array
(
[0] =&gt; Array
    (
        [Country] =&gt; IN
        [Amt] =&gt; 00000260
    )

[1] =&gt; Array
    (
        [Country] =&gt; JN
        [Amt] =&gt; 00000412
    )

[2] =&gt; Array
    (
        [Country] =&gt; WO
        [Amt] =&gt; 00000225
    )

[3] =&gt; Array
    (
        [Country] =&gt; YQ
        [Amt] =&gt; 00002983
    )

[4] =&gt; Array
    (
        [Country] =&gt; YR
        [Amt] =&gt; 00000100
    )

[5] =&gt; Array
    (
        [Country] =&gt; Other
        [Amt] =&gt; 0
    )

)

)

)

)

)

[ocTax] =&gt; 0
)

[onward] =&gt; Array
(
[FlightSegments] =&gt; Array
(
[FlightSegment] =&gt; Array
(
[0] =&gt; Array
(
[AirEquipType] =&gt; 739
[ArrivalAirportCode] =&gt; MAA
[ArrivalAirportName] =&gt; CHENNAI
[ArrivalDateTime] =&gt; 2013-05-05T07:40:00
[DepartureAirportCode] =&gt; BLR
[DepartureAirportName] =&gt; BANGALORE
[DepartureDateTime] =&gt; 2013-05-05T06:50:00
[FlightNumber] =&gt; 7029
[MarketingAirlineCode] =&gt; 9W
[OperatingAirlineCode] =&gt; 9W
[OperatingAirlineName] =&gt; Jet Airways 
[OperatingAirlineFlightNumber] =&gt; 7029
[NumStops] =&gt; 0
[LinkSellAgrmnt] =&gt; SS
[Conx] =&gt; Y
[AirpChg] =&gt; N
[InsideAvailOption] =&gt; N
[GenTrafRestriction] =&gt; ?
[DaysOperates] =&gt; YNNNNNN
[JrnyTm] =&gt; 785
[EndDt] =&gt; 20130505
[StartTerminal] =&gt; ?
[EndTerminal] =&gt; D
[FltTm] =&gt; 50
[LSAInd] =&gt; Y
[Mile] =&gt; 168
[BookingClass] =&gt; Array
(
[Availability] =&gt; 007
[BIC] =&gt; T
)

[BookingClassFare] =&gt; Array
(
[bookingclass] =&gt; T
[classType] =&gt; Economy
[farebasiscode] =&gt; Z4zAhRL7boXLdF8E7pg/Gg==
[Rule] =&gt; Cancellation Penalty: All bookings done are subject to the cancellation penalty levied by the respective airline.
In addition to the airline's cancellation penalty, we charge a service fee of Rs. 200 per passenger for all cancellations.|Date Change Penalty: In addition to the airline's date change penalty, we charge a service fee of Rs. 250 per passenger for any date changes.|
)

)

[1] =&gt; Array
(
[AirEquipType] =&gt; 737
[ArrivalAirportCode] =&gt; CMB
[ArrivalAirportName] =&gt; Colombo
[ArrivalDateTime] =&gt; 2013-05-05T19:55:00
[DepartureAirportCode] =&gt; MAA
[DepartureAirportName] =&gt; CHENNAI
[DepartureDateTime] =&gt; 2013-05-05T18:30:00
[FlightNumber] =&gt; 252
[MarketingAirlineCode] =&gt; 9W
[OperatingAirlineCode] =&gt; 9W
[OperatingAirlineName] =&gt; Jet Airways 
[OperatingAirlineFlightNumber] =&gt; 252
[NumStops] =&gt; 0
[LinkSellAgrmnt] =&gt; SS
[Conx] =&gt; N
[AirpChg] =&gt; N
[InsideAvailOption] =&gt; N
[GenTrafRestriction] =&gt; ?
[DaysOperates] =&gt; YNNNNNN
[JrnyTm] =&gt; 785
[EndDt] =&gt; 20130505
[StartTerminal] =&gt; I
[EndTerminal] =&gt; ?
[FltTm] =&gt; 85
[LSAInd] =&gt; Y
[Mile] =&gt; 402
[BookingClass] =&gt; Array
(
[Availability] =&gt; 007
[BIC] =&gt; Q
)

[BookingClassFare] =&gt; Array
(
[bookingclass] =&gt; Q
[classType] =&gt; Economy
[farebasiscode] =&gt; Z4zAhRL7boXLdF8E7pg/Gg==
[Rule] =&gt; Cancellation Penalty: All bookings done are subject to the cancellation penalty levied by the respective airline.
In addition to the airline's cancellation penalty, we charge a service fee of Rs. 200 per passenger for all cancellations.|Date Change Penalty: In addition to the airline's date change penalty, we charge a service fee of Rs. 250 per passenger for any date changes.|
)

)

)

)

)

[Return] =&gt; Array
(
)

[id] =&gt; arzoo22
[key] =&gt; DsEEIVONfp1f68R2DgKcVEb0gG2ZuxB2y+DauYeSiF3QweTiPhdGIWgoifR/a2Cj7pCpm05L2QnD
vXFXubDdIyuoEEf9FbAN4z7uuUBbuJWfy8uNPG/9b2fi6uU8d/jPtkPz+QotFGxf68R2DgKcVAxl
n+JT2sq20MHk4j4XRiFoKIn0f2tgo+sVQZmUH8fjjct7YYgqWIoUUZ48kBq4e4V1i7vZuywrLDDy
eF89tBO3AlP4UvcRhPpnSvkiAr2L00RIQ3Q3WcWoeJyfwbWuBeZMGdVMHWKfw71xV7mw3SOMG41f
vdQZIl/rxHYOApxUgFYoNoctSwTkUKibZHahg2fi6uU8d/jPAJdXKqYIvc7v3xbDmqRTwmid7uY2
UmI56xVBmZQfx+ONy3thiCpYikgRopJOZai5w71xV7mw3SOesti0ItOrM+qV6E/q3ryX4z7uuUBb
uJVda06JiVzmQQR9veF6y0bR3rVWvSXJ83vQweTiPhdGIWgoifR/a2CjtgjO5vGUe97DvXFXubDd
I75VFMSf1uBcZ+Lq5Tx3+M9KP1W5nZdNNBCea3UgRiR6hXWLu9m7LCu1fNZ0JD1Dq3KE2FJK4F8Q
oFuj0k2+q/5wY/miqFda64V1i7vZuywrkodlEqgqoFfjPu65QFu4lcjgWUNunTUZZ+Lq5Tx3+M8Y
viwh2ChqoF/rxHYOApxUSrftj2WKPgozrhjxOHyuKGfi6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)
)

                )

        )

)
</code></pre>

<p>Now for displaying the Flight Numbers of first result i am using the below code.</p>

<pre><code>$array_data &lt;-- The Whole above data is in this variable

$s=0;
foreach($array_data as $array)
{
echo $c=$array['AvailResponse']['OriginDestinationOptions']['OriginDestinationOption']['0']['onward']['FlightSegments']['FlightSegment']['$s']['FlightNumber'];
$s++;
}
</code></pre>

<p>I am not getting any result. Is there anything wrong in my code..?</p>

<p>Thanks,
Shoba.</p>
