Hopefully, I can explain this correctly.
I have a multidimensional array getting this array result:
Array
(
    [0] => Array
        (
            [subscription_plan_id] => 36
            [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
            [property_id] => 1026
            [plan_name] => One Month
            [plan_month] => 1
            [start_date] => 2015-02-10 14:58:32
            [end_date] => 2015-03-10
            [active] => 1
            [parent_id] => 27
        )
    [1] => Array
        (
            [subscription_plan_id] => 17
            [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
            [property_id] => 1026
            [plan_name] => 1 Realistic Photo
            [plan_month] => 1
            [start_date] => 2015-02-10 14:58:32
            [end_date] => 2015-03-10
            [active] => 1
            [parent_id] => 16
        )
    [2] => Array
        (
            [subscription_plan_id] => 15
            [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
            [property_id] => 1026
            [plan_name] => Six months - at least twenty-four golden lists
            [plan_month] => 6
            [start_date] => 2015-02-10 14:58:32
            [end_date] => 2015-08-10
            [active] => 1
            [parent_id] => 12
        )
    [3] => Array
        (
            [subscription_plan_id] => 9
            [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
            [property_id] => 1025
            [plan_name] => One month
            [plan_month] => 1
            [start_date] => 2015-02-10 14:58:32
            [end_date] => 2015-03-10
            [active] => 1
            [parent_id] => 5
        )
    [4] => Array
        (
            [subscription_plan_id] => 3
            [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
            [property_id] => 1025
            [plan_name] => Three months
            [plan_month] => 3
            [start_date] => 2015-02-10 14:58:32
            [end_date] => 2015-05-10
            [active] => 1
            [parent_id] => 1
        )
)
and I want to group by property_id key:
Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [subscription_plan_id] => 36
                    [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
                    [property_id] => 1026
                    [plan_name] => One Month
                    [plan_month] => 1
                    [start_date] => 2015-02-10 14:58:32
                    [end_date] => 2015-03-10
                    [active] => 1
                    [parent_id] => 27
                )
            [1] => Array
                (
                    [subscription_plan_id] => 17
                    [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
                    [property_id] => 1026
                    [plan_name] => 1 Realistic Photo
                    [plan_month] => 1
                    [start_date] => 2015-02-10 14:58:32
                    [end_date] => 2015-03-10
                    [active] => 1
                    [parent_id] => 16
                )
            [2] => Array
                (
                    [subscription_plan_id] => 15
                    [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
                    [property_id] => 1026
                    [plan_name] => Six months - at least twenty-four golden lists
                    [plan_month] => 6
                    [start_date] => 2015-02-10 14:58:32
                    [end_date] => 2015-08-10
                    [active] => 1
                    [parent_id] => 12
                )
    [1] => Array
        (
            [0] => Array
                (
                    [subscription_plan_id] => 9
                    [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
                    [property_id] => 1025
                    [plan_name] => One month
                    [plan_month] => 1
                    [start_date] => 2015-02-10 14:58:32
                    [end_date] => 2015-03-10
                    [active] => 1
                    [parent_id] => 5
                )
            [1] => Array
                (
                    [subscription_plan_id] => 3
                    [transactionID] => WU3E5YRHHKMKMM3ZLLSJMNUWJM
                    [property_id] => 1025
                    [plan_name] => Three months
                    [plan_month] => 3
                    [start_date] => 2015-02-10 14:58:32
                    [end_date] => 2015-05-10
                    [active] => 1
                    [parent_id] => 1
                )
        )
)
Any idea? How to do this.
Thanks
 
     
     
     
     
    