Last active
September 10, 2015 13:44
-
-
Save viralvadgama/4bd9cce1c4c744ea69fa to your computer and use it in GitHub Desktop.
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 | |
$it = new RecursiveIteratorIterator(new RecursiveArrayIterator($multi_dimensional_array)); | |
$flat_array = iterator_to_array($it, false); // second parameter to preserve keys [default = true] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment