Skip to content

Instantly share code, notes, and snippets.

@aligundogdu
Created June 19, 2013 08:10
Show Gist options
  • Save aligundogdu/5812543 to your computer and use it in GitHub Desktop.
Save aligundogdu/5812543 to your computer and use it in GitHub Desktop.
$arrays[] = $column1;
$arrays[] = $column2;
$arrays[] = $column3;
$arrays[] = $column4;
$return = array();
for($x=0;$x<3;$x++){
for($y=0;$y<4;$y++){
$return[] = $arrays[$y][$x];
}
}
print_r($return);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment