Created
July 21, 2021 07:43
-
-
Save d0t15t/443f36ed30a38b56a66cfcd8f9af6c47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// array_map with $key => $value | |
return array_map(function($key, $value) { | |
return [$key => $value]; | |
}, array_keys($my_array), $my_array); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment