Skip to content

Instantly share code, notes, and snippets.

@freekmurze
Last active June 24, 2022 05:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freekmurze/3eccf623263eb3d8eb739b4f49043c31 to your computer and use it in GitHub Desktop.
Save freekmurze/3eccf623263eb3d8eb739b4f49043c31 to your computer and use it in GitHub Desktop.
Undot
<?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