php - How to group the arrays -
i need group array according proposal_num, array same proposal number lies in same row. how can this.. array structure , other details below.
array ( [0] => array ( [proposal_num] => simplexmlelement object ( [0] => 1 ) [date_departure] => simplexmlelement object ( [0] => 150715 ) [time_departure] => simplexmlelement object ( [0] => 0713 ) [date_arrival] => simplexmlelement object ( [0] => 150715 ) [time_arrival] => simplexmlelement object ( [0] => 0845 ) [departure] => simplexmlelement object ( [0] => atl ) [depart_terminal] => simplexmlelement object ( [0] => n ) [arrival] => simplexmlelement object ( [0] => bwi ) [marketing_cmpny] => simplexmlelement object ( [0] => nk ) [operating_cmpny] => simplexmlelement object ( [0] => nk ) [flight_number] => simplexmlelement object ( [0] => 824 ) [equipment_type] => simplexmlelement object ( [0] => 319 ) [total_fare] => simplexmlelement object ( [0] => 326.20 ) [total_tax] => simplexmlelement object ( [0] => 49.00 ) ) [1] => array ( [proposal_num] => simplexmlelement object ( [0] => 2 ) [date_departure] => simplexmlelement object ( [0] => 150715 ) [time_departure] => simplexmlelement object ( [0] => 1535 ) [date_arrival] => simplexmlelement object ( [0] => 150715 ) [time_arrival] => simplexmlelement object ( [0] => 1702 ) [departure] => simplexmlelement object ( [0] => atl ) [depart_terminal] => simplexmlelement object ( [0] => n ) [arrival] => simplexmlelement object ( [0] => clt ) [marketing_cmpny] => simplexmlelement object ( [0] => aa ) [operating_cmpny] => simplexmlelement object ( [0] => ) [flight_number] => simplexmlelement object ( [0] => 1711 ) [equipment_type] => simplexmlelement object ( [0] => 321 ) [total_fare] => simplexmlelement object ( [0] => 430.20 ) [total_tax] => simplexmlelement object ( [0] => 69.28 ) ) [2] => array ( [proposal_num] => simplexmlelement object ( [0] => 2 ) [date_departure] => simplexmlelement object ( [0] => 150715 ) [time_departure] => simplexmlelement object ( [0] => 1740 ) [date_arrival] => simplexmlelement object ( [0] => 150715 ) [time_arrival] => simplexmlelement object ( [0] => 1903 ) [departure] => simplexmlelement object ( [0] => clt ) [arrival] => simplexmlelement object ( [0] => bwi ) [marketing_cmpny] => simplexmlelement object ( [0] => aa ) [operating_cmpny] => simplexmlelement object ( [0] => ) [flight_number] => simplexmlelement object ( [0] => 703 ) [equipment_type] => simplexmlelement object ( [0] => 321 ) [total_fare] => simplexmlelement object ( [0] => 430.20 ) [total_tax] => simplexmlelement object ( [0] => 69.28 ) ) )
i wanted group array according proposal number.
i need output like..
airline stops departs arrives duraton price
nk atl→bwi 15/07/15 07:13 15/07/15 08:45 1hr 32m $326.20
atl→clt 15/07/15 15:35 15/07/15 17:02 1hr 27m $430.20 clt→bwi 15/07/15 17:40 15/07/15 19:03 1hr 23m
please me solve .. in advance
Comments
Post a Comment