I have simple foreach loop and get data.. There is two array i get. I want to combine in single array.How can i do this ?
My Foreach loop :
foreach ($productInformation as $proInfo) {
        $userApprovalDat[]= UserProduct::userPendingApprovalList($proInfo->product_id, $id);
    }
Response for return data: Response :
 [
        {
            "id": 4,
            "user_id": 3,
            "product_id": 1,
            "approval_status": "Pending",
            "product_role": "Member",
            "created_at": "2018-04-27 18:49:24",
            "updated_at": "2018-04-27 18:49:24"
        },
        {
            "id": 7,
            "user_id": 4,
            "product_id": 1,
            "approval_status": "Pending",
            "product_role": "Member",
            "created_at": "2018-05-03 17:25:49",
            "updated_at": "2018-05-03 17:25:49"
        }
    ],
    [
        {
            "id": 2,
            "user_id": 2,
            "product_id": 2,
            "approval_status": "Pending",
            "product_role": "Member",
            "created_at": "2018-04-27 18:47:43",
            "updated_at": "2018-04-27 18:47:43"
        },
        {
            "id": 5,
            "user_id": 3,
            "product_id": 2,
            "approval_status": "Pending",
            "product_role": "Member",
            "created_at": "2018-04-27 18:49:24",
            "updated_at": "2018-04-27 18:49:24"
        },
        {
            "id": 8,
            "user_id": 4,
            "product_id": 2,
            "approval_status": "Pending",
            "product_role": "Member",
            "created_at": "2018-05-03 17:25:49",
            "updated_at": "2018-05-03 17:25:49"
        }
    ]
I want to combine in one array how can i do this ?
 
    