0

多次元配列に関する問題に直面しています。すべての要素を取得するのを手伝っていただけませんか。よろしくお願いします。

Array ( [0] => stdClass Object
    (
        [employee_id] => 7007
        [first_name] => phoukaothong
        [0] => Array
            (
                [0] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => OL
                                [max_allow] => 10
                                [taken] => 1
                            )

                    )

                [1] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => SL
                                [max_allow] => 15
                                [taken] => 0
                            )

                    )

                [2] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => PL
                                [max_allow] => 10
                                [taken] => 0
                            )

                    )

                [3] => stdClass Object
                    (
                        [0] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [leave_code] => AL
                                        [max_allow] => 10
                                        [taken] => 0
                                    )

                            )

                    )

                [4] => stdClass Object
                    (
                        [0] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [leave_code] => AL
                                        [max_allow] => 10
                                        [taken] => 0
                                    )

                            )

                    )

            )

    )

[1] => stdClass Object
    (
        [employee_id] => 7009
        [first_name] => william
        [0] => Array
            (
                [0] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => OL
                                [max_allow] => 10
                                [taken] => 1
                            )

                    )

                [1] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => SL
                                [max_allow] => 15
                                [taken] => 0
                            )

                    )

                [2] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => PL
                                [max_allow] => 10
                                [taken] => 0
                            )

                    )

                [3] => stdClass Object
                    (
                        [0] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [leave_code] => AL
                                        [max_allow] => 10
                                        [taken] => 0
                                    )

                            )

                    )

                [4] => stdClass Object
                    (
                        [0] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [leave_code] => AL
                                        [max_allow] => 10
                                        [taken] => 0
                                    )

                            )

                    )

                [5] => stdClass Object
                    (
                        [0] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [leave_code] => OL
                                        [max_allow] => 10
                                        [taken] => 0
                                    )

                            )

                    )

                [6] => stdClass Object
                    (
                        [0] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [leave_code] => SL
                                        [max_allow] => 15
                                        [taken] => 0
                                    )

                            )

                    )

                [7] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => PL
                                [max_allow] => 10
                                [taken] => 5
                            )

                    )

                [8] => Array
                    (
                        [0] => stdClass Object
                            (
                                [leave_code] => AL
                                [max_allow] => 10
                                [taken] => 10
                            )

                    )

                [9] => stdClass Object
                    (
                        [0] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [leave_code] => AL
                                        [max_allow] => 10
                                        [taken] => 0
                                    )

                            )

                    )

            )
    )
)
4

0 に答える 0