array_merge()
to merge multiple arrays into onearray_merge()
to merge multiple arrays into oneWhen you have multiple arrays and need to combine them into a single array, array_merge()
comes in handy. It takes two or more arrays as arguments and returns a new array that contains all the elements from the input arrays.