Array
(
    [0] => stdClass Object
        (
            [terminate] => 0
            [membership_id] => 387
            [membership_type] => Associate
            [total_amount] => 240
            [status] => unpaid
            [total_amount_paid] => 210
            [total_amount_balance] => 30
            [membership_upgrade_date] => 
            [payment_phases] => Array
                (
                    [0] => stdClass Object
                        (
                            [year] => 2022
                            [amount] => 30.00
                            [paid_amount] => 30.00
                            [phase] => 1
                            [ref_no] => FP001839
                            [payment_date] => 2022-01-17 13:10:01
                            [payment_method] => Online Payment
                            [payment_id] => 13452
                            [receipt_no] => KLS-MS-2201/13452
                        )

                    [1] => stdClass Object
                        (
                            [year] => 2022
                            [amount] => 30.00
                            [paid_amount] => 0.00
                            [phase] => 2
                            [ref_no] => 
                            [payment_date] => 
                            [payment_method] => 
                            [payment_id] => 13453
                            [receipt_no] => 
                        )

                    [2] => stdClass Object
                        (
                            [year] => 2021
                            [amount] => 30.00
                            [paid_amount] => 30.00
                            [phase] => 1
                            [ref_no] => FAAPP20219621
                            [payment_date] => 2021-02-03 13:32:17
                            [payment_method] => 
                            [payment_id] => 9299
                            [receipt_no] => KLS-MS-2102/9299
                        )

                    [3] => stdClass Object
                        (
                            [year] => 2021
                            [amount] => 30.00
                            [paid_amount] => 30.00
                            [phase] => 2
                            [ref_no] => FP001757
                            [payment_date] => 2021-11-26 18:16:44
                            [payment_method] => Online Payment
                            [payment_id] => 9300
                            [receipt_no] => KLS-MS-2111/9300
                        )

                    [4] => stdClass Object
                        (
                            [year] => 2020
                            [amount] => 30.00
                            [paid_amount] => 30.00
                            [phase] => 1
                            [ref_no] => FA20202226
                            [payment_date] => 2020-02-27 16:09:33
                            [payment_method] => 
                            [payment_id] => 5038
                            [receipt_no] => KLS-MS-2002/5038
                        )

                    [5] => stdClass Object
                        (
                            [year] => 2020
                            [amount] => 30.00
                            [paid_amount] => 30.00
                            [phase] => 2
                            [ref_no] => FA20202226
                            [payment_date] => 2020-02-27 16:09:33
                            [payment_method] => 
                            [payment_id] => 5039
                            [receipt_no] => KLS-MS-2002/5039
                        )

                    [6] => stdClass Object
                        (
                            [year] => 2019
                            [amount] => 30.00
                            [paid_amount] => 30.00
                            [phase] => 1
                            [ref_no] => IMPORT
                            [payment_date] => 2019-01-01 00:00:00
                            [payment_method] => 
                            [payment_id] => 773
                            [receipt_no] => KLS-MS-1901/0773
                        )

                    [7] => stdClass Object
                        (
                            [year] => 2019
                            [amount] => 30.00
                            [paid_amount] => 30.00
                            [phase] => 2
                            [ref_no] => IMPORT
                            [payment_date] => 2019-01-01 00:00:00
                            [payment_method] => 
                            [payment_id] => 774
                            [receipt_no] => KLS-MS-1901/0774
                        )

                )

        )

)
234
bool(false)
bool(false)
bool(false)
bool(false)
Array
(
    [2022] => stdClass Object
        (
            [status] => unpaid
            [payment_phases] => Array
                (
                    [1] => stdClass Object
                        (
                            [year] => 2022
                            [amount] => 30.00
                            [paid_amount] => 0.00
                            [phase] => 2
                            [ref_no] => 
                            [payment_date] => 
                            [payment_method] => 
                            [payment_id] => 13453
                            [receipt_no] => 
                        )

                )

            [phase_2_balance] => 
            [sgm_db_type] => membership
            [year] => 2022
            [membership_id] => 387
            [balance] => 30
        )

)