Creates an array by using the elements from one keys array and one values array

Published: 20 December 2016
on channel: Programers Point
11
0

Create an array by using the elements from one "keys" array and one "values" array:

Definition and Usage

The array_combine() function creates an array by using the elements from one "keys" array and one "values" array.

Note: Both arrays must have equal number of elements!


Syntax
array_combine(keys,values);

Parameter Description
keys Required. Array of keys
values Required. Array of values

Technical Details
Return Value: Returns the combined array. FALSE if number of elements does not match


On this page of the site you can watch the video online Creates an array by using the elements from one keys array and one values array with a duration of hours minute second in good quality, which was uploaded by the user Programers Point 20 December 2016, share the link with friends and acquaintances, this video has already been watched 11 times on youtube and it was liked by 0 viewers. Enjoy your viewing!