DEV Community

Discussion on: Never use array_merge in a loop in PHP

Collapse
nguyenhai97ict profile image
Nguyễn Đăng Hải

So basically different way of using array_merge so it still array_merge after all :?

Collapse
klnjmm profile image
Jimmy Klein Author

Sorry but I don't understand your comment...

Collapse
chris_daniel profile image
Christopher Daniel • Edited on

I think if we pass more than two arrays as arguments, it will call k way merge. It is faster than array_merge in loop