Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function array_undot($dottedArray, $initialArray = [])
- {
- // to make it recursive:
- $dottedArray = array_dot($dottedArray);
- foreach ($dottedArray as $key => $value) {
- array_set($initialArray, $key, $value);
- }
- return $initialArray;
- }
Add Comment
Please, Sign In to add comment