From http://ezcomponents.org/docs/api/latest/__filesource/fsource_ConsoleTools---ConsoleTools---1.6---src---output.php.html