I'm fairly new to PHP and I recently came across the array_fill_keys() function. I've been trying to understand how it works, but I'm a bit confused.
From what I gather, array_fill_keys() is used to create a new array with specified keys, and the same value for each key. However, I'm having trouble understanding how to use it in practice.
Could someone please provide me with a clear example of how to use the array_fill_keys() function? It would be greatly appreciated if you could explain the syntax and provide a simple code snippet to help me understand better.
Thanks in advance for your help!