This is a feature request. Input: ```php $data = [ 'hair' => [ 'blond', 'black' ], 'eyes' => [ 'blue', 'green', ] ]; ``` Expected output: ```php Array ( [0] => Array ( [hair] => blond [eyes] => blue ) [1] => Array ( [hair] => blond [eyes] => green ) [2] => Array ( [hair] => black [eyes] => blue ) [3] => Array ( [hair] => black [eyes] => green ) ) ``` Use case: combining all possible route parameter values for sitemap generation <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/71727313-there-should-be-a-way-to-preserve-keys-with-cartesianproduct?utm_campaign=plugin&utm_content=tracker%2F894946&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F894946&utm_medium=issues&utm_source=github). </bountysource-plugin>
This is a feature request.
Input:
Expected output:
Use case:
combining all possible route parameter values for sitemap generation
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.