Function

array_fill_keys

Synopsis

array_fill_keys(mixed, mixed): array

Area
Runtime\PS\Core\Arrays\Sets\array_fill_keysareas

Description

array_fill_keys returns an array whose keys are the values of $keys and whose every value is $value; a key repeated in $keys lands once, as the later assignment overwrites the earlier.

Usage

$value = array_fill_keys($arguments);
$fn = array_fill_keys(...);

See also