Skip to content

Instantly share code, notes, and snippets.

@dsnopek
Created May 27, 2014 14:01
Show Gist options
  • Save dsnopek/79c69bb3f71c8080e6c7 to your computer and use it in GitHub Desktop.
Save dsnopek/79c69bb3f71c8080e6c7 to your computer and use it in GitHub Desktop.
<?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