array_fill_keys()
function array_fill_keys(array $keys, mixed $value): array
Fill an array with values, specifying keys.
Parameters:
$keys(array)$value(mixed)
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/array/array_fill_keys.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_fill_keys is implemented in the compiler, see the internals page.