Last active
September 30, 2015 09:55
-
-
Save damirm/e7ff84e122882591bee1 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
function transpose($matrix) { | |
array_unshift($matrix, null); | |
return call_user_func_array('array_map', $matrix); | |
} | |
function transpose($matrix) { | |
return array_map(null, ...$matrix); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment