Created
December 15, 2017 07:18
-
-
Save qwersk/b97af62bcdfede8e43e8f133b8ba4776 to your computer and use it in GitHub Desktop.
Multidimensional array to single array #PHP
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 | |
$single = array_reduce($multi, 'array_merge', array()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment