|
array_combineCreates an array by using one array for keys and another for its values Description
array array_combine
( array
$keys
, array $values
)
Creates an array by using the values from the
Parameters
Return Values
Returns the combined array, Errors/Exceptions
Throws Changelog
Examples
Example #1 A simple array_combine example
<?phpThe above example will output:
Array
(
[green] => avocado
[red] => apple
[yellow] => banana
)
See Also
|