Skip to content

Instantly share code, notes, and snippets.

@trq
Created March 30, 2014 12:06
Show Gist options
  • Save trq/9871885 to your computer and use it in GitHub Desktop.
Save trq/9871885 to your computer and use it in GitHub Desktop.
<?php
$output = '';
SSH::run($commands, function($line) use (&$output)
{
$output .= $line;
});
echo $output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment