Name
array_fill_keys
Synopsis
array array_fill_keys(arraykeys
, mixedvalue
)
Returns an array containing values for each item in
keys
, using the elements in
keys
for each element’s key and
value
for each element’s value.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.