Last active
June 24, 2022 05:04
-
-
Save freekmurze/3eccf623263eb3d8eb739b4f49043c31 to your computer and use it in GitHub Desktop.
Undot
This file contains 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 | |
function undot(array $dottedArray) | |
{ | |
$undottedArray = []; | |
foreach ($dottedArray as $key => $value) { | |
Arr::set($undottedArray, $key, $value); | |
} | |
return $undottedArray; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment