How to quickly construct a JSON template array using PHP's array_fill_keys function?
In daily PHP development, we often need to construct some fixed structure JSON data, especially when processing API returns data or configuration templates. If you've ever been bothered with manually filling each key, the array_fill_keys function will be a good helper for you.
array_fill_keys