Skip to content

Instantly share code, notes, and snippets.

@hskrasek
Created January 6, 2014 20:31
Show Gist options
  • Save hskrasek/8289370 to your computer and use it in GitHub Desktop.
Save hskrasek/8289370 to your computer and use it in GitHub Desktop.
$output = [];
foreach($stages as $key => $stage)
{
$output[$key] = $stage;
$output[$key][steps] = $stage->steps()->getResults()->toArray();
}
json_encode($output);
echo 'Yay';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment