PHP array_fill_keys() Function

It fills an array with the value of the value parameter, using the values of the keys array as keys.

Example -

Example -