Fill an array with values, specifying keys:
The array_fill_keys() function fills an array with values, specifying keys.
| Parameter | Description |
|---|---|
| keys | Required. Array of values that will be used as keys |
| value | Required. Specifies the value to use for filling the array |
| Return Value: | Returns the filled array |
|---|---|
| PHP Version: | 5.2+ |
PHP Array Reference
Your message has been sent to W3Schools.