Skip to content

Instantly share code, notes, and snippets.

@e7o-de
Created July 15, 2012 13:12
Show Gist options
  • Save e7o-de/3116845 to your computer and use it in GitHub Desktop.
Save e7o-de/3116845 to your computer and use it in GitHub Desktop.
Colored terminal output
function colorOutput($text) {
$text = str_pad($text, 80, ' ', STR_PAD_RIGHT);
echo "\x1b[7m$text\x1b[0m";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment