Merging Arrays

The array_merge() function #

array_merge() is a built-in function in PHP. It is the easiest way to merge two or more arrays. It can take as much input parameters as you give to it and returns the merged array.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy