Skip to content

Instantly share code, notes, and snippets.

@ericandrewlewis
Created September 28, 2012 17:06
Show Gist options
  • Save ericandrewlewis/3801007 to your computer and use it in GitHub Desktop.
Save ericandrewlewis/3801007 to your computer and use it in GitHub Desktop.
foreach ( $stuff as $stuff_key => $bits ) {
foreach ( $bits as $bit_key => $bit ) {
$new[$bit_key][$stuff_key] = $bit;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment