Created
May 27, 2014 14:01
-
-
Save dsnopek/79c69bb3f71c8080e6c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
$a = array('a' => 'a1', 'b' => 'b1'); | |
$b = array('a' => 'a2', 'b' => 'b2'); | |
print_r(array_map(NULL, $a, $b)); | |
/* RESULT: | |
Array | |
( | |
[0] => Array | |
( | |
[0] => a1 | |
[1] => a2 | |
) | |
[1] => Array | |
( | |
[0] => b1 | |
[1] => b2 | |
) | |
) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment