Skip to content

array_combine

Hyomoto edited this page Jun 13, 2021 · 2 revisions
Jump To Go Back Arguments

array_combine( arrays... )

Returns: array

Throws: InvalidArgumentType

Returns a new array containing all the elements of the provided arrays. If any arguments are not an array, InvalidArgumentType will be thrown.

array_combine( [ 10, 20 ], [ "a, "b" ] );
Output: [ 10,20,"a","b" ]

Arguments

Name Type Purpose
arrays... array No description
Clone this wiki locally