I have a multi-dimensional array. Now i need to sort this array in the order of one value.
Here's the print_r of this array:
Array
(
[2] => Array
(
[NoticeType] => Invoice or Statement
[PhoneNumber] => 2222222222
[NoticeIdentifier] => Firm1
[NoticeDescription] => test
[AdditionalComments] => test1
[LineItemGHN] => Monthly Charges
[Amount] => 100
[StartDate] => 21/10/2014
[EndDate] =>
[TaxGroup] => GP-1 (GP-1. Service Tax (12) + Edu Cess (0.24) + Sec & High Edu Cess (0.12) for a total of 12.36%)
)
[3] => Array
(
[NoticeType] => Notice
[PhoneNumber] => 3333333333
[NoticeIdentifier] => Firm1
[NoticeDescription] => test2
[AdditionalComments] => test2
[LineItemGHN] => Half Yearly Subscription
[Amount] => 200
[StartDate] => 21/10/2014
[EndDate] =>
[TaxGroup] => GP-0 (No Taxes)
)
[4] => Array
(
[NoticeType] => Invoice or Statement
[PhoneNumber] => 2222222222
[NoticeIdentifier] => Firm1
[NoticeDescription] => test
[AdditionalComments] => test1
[LineItemGHN] => Discounts
[Amount] => 50
[StartDate] => 21/10/2014
[EndDate] =>
[TaxGroup] => GP-1 (GP-1. Service Tax (12) + Edu Cess (0.24) + Sec & High Edu Cess (0.12) for a total of 12.36%)
)
[5] => Array
(
[NoticeType] => Invoice or Statement
[PhoneNumber] => 2222222222
[NoticeIdentifier] => Firm2
[NoticeDescription] => test
[AdditionalComments] => test1
[LineItemGHN] => Monthly Charges
[Amount] => 2500
[StartDate] => 21/10/2014
[EndDate] =>
[TaxGroup] => GP-1 (GP-1. Service Tax (12) + Edu Cess (0.24) + Sec & High Edu Cess (0.12) for a total of 12.36%)
)
I need to sort this array according to PhoneNumber
.I'm trying my luck hard from last 4 hrs. How to do that sorting?